Skip to content
We areTOP 1%
Operating Systems · Beginner · Topic 3 of 3

CPU Scheduling

5 questions.
Your progress0%
1st Visit
0/5
2nd Visit
0/5
Revise
0/5

Overview

The CPU scheduler decides which ready process runs next and, in preemptive systems, for how long. Algorithms are compared using a few metrics: turnaround time, waiting time, response time and throughput. The classic algorithms are First-Come First-Served, Shortest Job First and its preemptive form SRTF, priority scheduling, Round Robin and multilevel queues. Each trades average waiting time against responsiveness, overhead and fairness, and some can starve long or low-priority jobs. Real systems mix these ideas: Linux's default scheduler (CFS, and EEVDF since kernel 6.6) aims to give every task a fair share of CPU time. Practise drawing Gantt charts and computing average waiting times for small process tables.

Questions

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account