← Back to Labs

Linux CFS Scheduler

Watch how the kernel fairly divides CPU time between processes

CPU TimelineVirtual Runtime (vruntime)nginxnice=0compilenice=+5videonice=-5backupnice=+10
Step 1 / 10Process Queue

The Linux kernel needs to decide which program runs on the CPU and for how long. Four processes are waiting. Each has a "nice" value: lower means higher priority. The scheduler's job is to be fair while respecting priorities.

Arrow keys to navigate · R to reset

Tap dots to jump to any step

Read the full article →Take the quiz →