1.2 Processor Scheduling Flashcards
What are interrupts?
A signal to the CPU to change the process it is completing.
Explain the steps of interrupt process.
(4 points)
- Interrupt signal of higher priority received.
- Stores values of registers for current task.
- Completes interrupt service routine.
- Restores previous task.
What are some examples of why interrupts happen?
- Power failure
- Clock (scheduled) interrupt
- Input / Output requests
What is Processor Scheduling ?
Assigning different tasks to a CPU at different
times to give the appearance of multi-tasking.
How should Hardware be kept ?
As busy as possible
What are the 5 types of Processor Scheduling methods ?
- First come First Served,
- Shortest Remaining Time
- Shortest Job First
- Round robin,
- Multi-level feedback queues,
How does first come first served work?
do the task that started first first.
How does Shortest remaining time/job first work? (2 points)
Do the task with the Shortest remaining time/job first.
An issue with this is that longer tasks may never be completed.
Another issue is that processing power is used to work out which task has the shortest remaining time/ job first.
How does Round robin work?
Cycle through all processes using a consistent time slice.
How do Multi-level feedback queues work?
Manage multiple priority queues of jobs based on resources they use