Free — no signup required

Introduction: The CPU's Traffic Cop

1 min read

The Multitasking Illusion

Right now, your computer is probably running hundreds of processes: your web browser, music player, background system updates, network managers, and more. But if you have a CPU with 4 cores, how can 200 processes run at the same time?

They don't. It's an illusion.

A CPU core can only execute one instruction from one process at any given nanosecond. The illusion of multitasking is created by switching the CPU's attention between processes incredibly fast — thousands of times per second. Each process gets a tiny slice of CPU time, and because the switching happens faster than human perception, everything appears to run simultaneously.

The component of the Linux kernel that decides which process gets the CPU right now and for how long is called the Process Scheduler. It is the ultimate traffic cop of the system — and its decisions have profound effects on system responsiveness, throughput, and latency.

Understanding the scheduler is not just academic. When a web server starts dropping requests under load, when a real-time audio application crackles, or when a Kubernetes node becomes unresponsive, the scheduler is often at the center of the story.

This is one of 18 chapters

Every chapter is free — Kubernetes, Terraform, SRE, distributed systems, and more — with fast daily review built in.

Sign up free