Chapter 6 - CPU Scheduling Flashcards
What does process execution consist of?
A cycle of CPU execution and I/O wait
When do CPU scheduling decisions take place?
Switches from…
1) Running to waiting
2) Running to ready
3) Waiting to ready
4) When a process terminates
Which situations lead to preemptive CPU scheduling decisions?
Process switches from running or waiting to ready
Switching from running to ready and termination are non-preemptive
What is a dispatcher module?
Give control of the CPU to the process selected by the short-term scheduler
What is dispatcher latency?
The time it takes for the dispatcher to stop one process and start another
How are scheduling algorithms chosen?
Based on optimization criteria like throughput and turnaround time
What are some scheduling algorithms?
FCFS, SJF, Shortest-Remaining-Time-First, Round Robin, Priority
What is the Round Robin algorithm?
Scheduling algorithm that uses small time quantums that can result in large amounts of context switches
What can Priority Scheduling result in?
Starvation, which can be solved by aging a process (as time progresses increase the priority)