CPU scheduling
How the scheduler picks the next process: the measures that judge it, FCFS, SJF and HRRN, and the preemptive methods SRTF, priority and round robin.
About 5 hours of study
Learning objectives
- Compute completion, turnaround and waiting times from a schedule
- Run FCFS, SJF, SRTF and round robin by hand
- Choose a scheduler for a goal and explain its weakness
Lessons
- 1
CPU scheduling: FCFS and SJF
How the scheduler picks the next process, the measures that judge it (turnaround, waiting and response time), first come first served, and shortest job first.
- 2
Round robin, SRTF and priority Intermediate
Preemptive scheduling with the timer: shortest remaining time first, priority scheduling with aging, round robin and the choice of time quantum, and the multilevel feedback queue, with Gantt charts.
Module practice
- FCFS schedulingEasy
- Shortest job firstMedium
- Highest response ratio nextHard
- Round robin from time zeroEasy
- Shortest remaining time firstMedium
- Round robinHard
Module quiz
‹ How an operating system worksSynchronization and deadlock ›