Process State Transitions: Ready, Running, Blocked Explained
This article explains the three fundamental process states—Ready, Running, and Blocked—their transitions, the role of ready and blocked queues, context switching overhead, and the extended five-state model including New and Terminated states.
Reading font

Three Basic States
A process cycles through three primary states during its lifetime:
Ready
The process has all required resources (memory, files, etc.) and is waiting only for CPU time .
Analogy: You sit in a restaurant after ordering; the kitchen is busy—you are "ready" waiting for your number.
Running
The process is actively executing instructions on the CPU. On a single-core CPU, only one process can be running at any instant .
Analogy: Your number is called; the chef cooks your dish—this is "running".
Blocked (Waiting)
The process pauses because it waits for an event—user input, file read, network response, a lock, or a child process. Even if the CPU is idle, it cannot run.
Analogy: Your dish needs a special ingredient not in stock; you wait for delivery—neither queuing nor cooking, just "waiting".
Detailed State Transitions
┌──────────────────────────┐
│ │
┌────▼────┐ Scheduling ┌───────┴──┐
│ Ready │ ─────────────→ │ Running │
│ (Ready) │ ←───────────── │(Running) │
└────▲────┘ Time slice └───────┬──┘
│ │
│ I/O request / wait event │ Wait completes
│ ┌─────────────────────▼┐ │
└───│ Blocked │───┘
│ (Blocked/Waiting) │
└──────────────────────┘Ready → Running
Trigger: The OS scheduler selects the process and allocates the CPU. This is process scheduling —the scheduler picks a process from the ready queue.
Running → Ready
Triggers:
Time slice expires: Each process runs for a limited quantum (e.g., 10–100 ms) then returns to the ready queue.
Higher-priority process arrives: A more urgent process needs the CPU.
Voluntary yield: The process calls yield() to relinquish the CPU.
Analogy: You have 10 minutes on the stove; when time is up you must yield to the next person.
Running → Blocked
Triggers:
Process requests I/O (read file, wait for network data, wait for user input).
Process waits for a semaphore or lock.
Process waits for a child process to terminate.
Analogy: Your dish must steam for 30 minutes—the chef won't stand by the steamer; they switch to another dish. Your dish enters "blocked".
Blocked → Ready
Trigger: The awaited event completes (I/O finishes, data arrives, lock acquired).
Analogy: The ingredient arrives; cooking can resume—from "waiting" back to "queuing".
Note: A blocked process cannot jump directly to running; it must first enter the ready queue and wait for the scheduler to pick it again.
Two Queues
The OS manages processes with two queues:
Ready Queue: All processes prepared to run, waiting for CPU. Typically ordered by priority or time slice.
Blocked Queue(s): Processes paused waiting for events. There can be multiple blocked queues, each for a different event type.
Process Context Switch
When the CPU switches from one process to another, a context switch occurs:
Save current process context: Store CPU registers, program counter, etc., into the current process's PCB.
Load new process context: Restore registers, program counter from the new process's PCB.
Update memory management info: Switch page tables, etc.
Context switching has a cost! Each switch consumes time saving and restoring state. Excessive switching leads to thrashing , where the CPU spends more time switching than doing useful work.
Analogy: A chef moving between multiple stoves must put down tools, pick up new ones—switching itself takes time. Too frequent switching reduces actual cooking time.
Five-State Model (Extended)
A more complete model adds New and Terminated states:
New → Ready ↔ Running → Blocked → Ready
↓
TerminatedNew → Ready: Process creation finishes, resources allocated.
Running → Terminated: Process completes execution or is forcibly terminated.
Key Exam Points (Software Qualification Exam)
Three basic process states: Ready, Running, Blocked.
Transition conditions and triggering events between states.
Blocked cannot become Running directly; must go through Ready.
Concept and overhead of process context switching.
Ready queue and blocked queue structures.
Summary
Processes continuously transition among Ready, Running, and Blocked. The CPU is like a chef who can cook only one dish at a time (running one process); others either queue for the stove (ready) or wait for ingredients (blocked). Understanding these three states and their transitions is fundamental to grasping how an OS manages multitasking.
About this article
For attribution, corrections or content rights, contact