Operating System Essentials: Process Management and Scheduling
Operating System Essentials: Process Management and Scheduling Across every modern computer, programs run as processes. A process is an instance of a running program with code, data, and resources. The operating system (OS) uses a scheduler to run several processes in time slices, giving the illusion of parallel work. This design keeps the system responsive, even on a single‑core CPU. A process can contain multiple threads, which execute tasks inside the process. The OS tracks each process with a state machine: new, ready, running, waiting (blocked on I/O or events), and terminated. When a process waits for input or a resource, the CPU can switch to another ready process, so work continues without long pauses. ...