CPU Scheduling
- Schedulers
- Structure of a CPU scheduler
- Criteria for scheduling
- Scheduling Algorithms
– FCFS – SPN – SRT – MLFQ
- CPU scheduling in Unix
CPU Scheduling Schedulers Structure of a CPU scheduler Criteria - - PDF document
CPU Scheduling Schedulers Structure of a CPU scheduler Criteria for scheduling Scheduling Algorithms FCFS SPN SRT MLFQ CPU scheduling in Unix Schedulers start long-term scheduler short-term scheduler
CPU burst
wait for I/O
CPU burst
wait for I/O
CPU burst
wait for I/O
CPU burst start terminate
PCB PCB
PCB PCB CPU CPU determine location in queue determine location in queue head head tail tail
PCB PCB CPU CPU
head head tail tail
(compare next CPU burst lengths)
(compare next CPU burst lengths)
(compare priorities)
(compare priorities)
(compare priorities)
(compare priorities)
(compare priorities)
(compare priorities)
FIFO queue
(compare priorities)
(compare priorities)
(compare priorities)
(compare priorities)
1 2 3 4 5 60 1 60 ... 75 30 67 63 76 68 15 7 33 16 8 67 ...
60 60 75 67 63 76 30
60 60 60 75 67 63
1 ... 15 7 33 8 67 ... 30 1 ... 15 7