operating-system-process-state.html


* created: 2025-05-18T16:29
* modified: 2025-06-03T08:58

title

Process state

description

A process can be in a couple of states which are: ready, running and blocked (there are more). This state is stored in the process control block (PCB).

The state of a process

A process can be in a couple of states, each of them represent a certain point during the runtime of the process. The main three state are ready, running and blocked (there are a couple more depending on the operating system).

ready: The process was created and waits to be executed by the CPU.

running: The process has access to the CPU and is currently getting executed. This state can be interrupted and the access to the CPU be revoked.

blocked: The process is currently waiting on a resource. This can happen when waiting on the result of I/O operation. During this time the process has no access the CPU. When the resource arrives (I/O operation finishes) the process switches back into the ready state and can be picked up by the CPU again.