by Froga
How a scheduler picks which process gets the CPU, and what goes wrong when it picks badly. For anyone curious what actually happens between pressing a key and seeing it appear on screen.
An operating system keeps every process in one of a few states: running (actively using the CPU), ready (waiting for a turn), or blocked (waiting on something like a disk read or a network reply). A component called the scheduler decides, many times per second, which ready process gets the CPU next. Moving a process out of the running state means recording exactly where it stood, so it can pick up later without losing progress.
multiple choice
Ready to test yourself?
Sign up free to answer, score points, and build your streak.