# CPU scheduling

Week 4 · Scheduling · Operating Systems
The page also has an interactive playground: https://alfonsocampodonico.com/classes/operating-systems/scheduling?lang=en
Code: https://github.com/AlfonsoCampodonico/os-playground/tree/main/src/sim (`gh repo clone AlfonsoCampodonico/os-playground`)

> Load jobs, pick FIFO, SJF, STCF, RR or MLFQ and compare turnaround and response time.

The scheduler decides which process gets the CPU at each moment. Change the policy and the jobs and watch the Gantt chart and the metrics change.

**OSTEP:** chapters 7–8, and the playground reproduces its `scheduler.py · mlfq.py` homework simulators, seed for seed.

The playground above keeps its whole setup in the URL, so a link to this page reproduces the exact example. Change the inputs, step through it, and share the link.
