Beginner Topic 6 of 51 Operating Systems
Process States
Lifecycle phases such as ready, running and waiting.
How it works
A process moves through states during its life: new when being created, ready when waiting for a CPU, running when executing, waiting or blocked when waiting for an event such as I/O, and terminated when finished. Scheduling moves it between ready and running, I/O requests move it to waiting and completion moves it back to ready. Some systems add suspended states for swapped-out processes.
Step-by-step walkthrough
- A new process is created and admitted.
- It waits in the ready queue for a CPU.
- The scheduler dispatches it to Running.
- It blocks for I/O and moves to Waiting.
- I/O completes so it returns to Ready, then finally exits.
Where it is used
The state model explains tools such as ps and top, which report states like R, S, D and Z, and clarifies why a blocked process uses no CPU. Schedulers choose among ready processes only.
Common pitfall
Processes stuck in uninterruptible sleep, waiting on faulty I/O, cannot be killed even with SIGKILL. Zombie processes are terminated but not yet reaped. Confusing blocked with ready leads to wrong scheduling analysis. Draw the state diagram and note which events cause each transition.
Where it fits in the course
Process States is topic 6 of 51 in Operating Systems, rated Beginner. It follows Processes. The next topic is Process Control Block.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Operating Systems quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Operating Systems quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Process States?
Where do people use Process States?
What is the most common mistake with Process States?
What should I learn before this topic?
How can I practice it?
Is Process States hard to learn?
How long does it take to learn Process States?
Which topics are related to Process States?
What should I study after Process States?
Related topics
- Processes (Operating Systems)
- Process Control Block (Operating Systems)
- System Calls (Operating Systems)
- Threads (Operating Systems)