What’s the OS’s main purpose, and what are some of it’s functions?
One sentence for purpose, and list it’s 4 main functions.
It manages hardware and provides an interface between the user and the application software.
It’s main functions are:
1. Providing a User Interface
2. Memory Management
3. Interrupt Handling
4. Processor Scheduling.
What is the purpose of Memory Management?
Don’t speak about a specific type of MM, give general information.
What’s Paging, and why is it useful?
Speak about Virtual Memory and programs larger than RAM.
How does Paging work, and what are it’s properties?
Speak about divisions, and non-contiguity.
What are the Advantages of Paging?
On the other hand, memory within a page may be wasted as programs are unlikely to take up that exact amount of space.
What is Segmentation, and why is it useful?
Segments can relate to part of a program, e.g. a subroutine or function.
What are the Disadvantages of Segmentation?
However, segments being dynamic can reduce internal fragmentation.
What is Virtual Memory, and when is it used?
What is Disk Thrashing, and how does it happen?
Talk about insufficient RAM
What’s an Interrupt, and what sort of things can cause one?
Talk about priority and the CPU.
Things that can cause an Interrupt include:
* Hardware devices such as an I/O device
* Software during an error
* A scheduled Interrupt from the Internal Clock
* Power Failure
The CPU checks for any interrupts to be processed AFTER the execution stage of the FDE cycle.
How does the CPU use the Stack to handle Interrupts?
Speak about Register contents, the ISR, and pushing & popping.
The Stack is a LIFO data structure; meaning the last data pushed on will be the first one popped and retrieved.
What’s Interrupt Priority, and how is the Stack involved?
Some Interrupts are of a higher priority than others…
What is Processor Scheduling, and what is it’s main purpose?
Speak about CPU engagement and execution starting.
It’s main objectives are:
* Maximising CPU engagement by minimising when the CPU is idle
* Allowing all processes to be given resources, ensuring fairness.
* Minimising response time between starting execution after being scheduled.
What is Round Robin, and how does the CPU know when to switch between time slices?
FIFO: First In, First Out
Round Robin is great for ensuring fairness, and maximising CPU engagement.
What are the Drawbacks of Round Robin?
What is First Come First Serve, and what could the Drawbacks be?
Talk about CPU utilisation, and long wait times
What is Shortest Remaining Time?
What are the Drawbacks of Shortest Remaining Time?
Tends to be faster than Shortest Job First, although it has more overhead.
What is Shortest Job First?
What are Multi-Level Feedback Queues?
Speak about priorities & waiting times.