Ready, Running, and Blocked Processes
A process or thread can be runnable, executing on a processor, or waiting for an event. Exact states depend on the operating system.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a file request
A task running CPU work may request data and block while waiting. Another runnable task can execute. When the data arrives, the original can become ready again before it is scheduled. See CPU scheduling queues.
Read what the state does not measure
A blocked task is not necessarily computing during its wait. Its total elapsed time includes that period. Latency and throughput distinguish duration from rate.[1]
Identify which transition explains waiting
A process using its time slice is running. When preempted while it still has work, it can become ready. Asking for data that is unavailable can block it until the needed event. Completion of that event can make it ready again before it is scheduled. See low CPU during waits.
Running → time slice ends → ready
Ready → scheduled → running
Running → waits for unread data → blocked
Data available → ready
Read the states as an abstraction
Specific systems expose additional scheduler states. Use this model to separate work waiting for CPU from work waiting on another resource. Check timing and blocking events before concluding a ready task is already executing.