LearnViz CompSci
Home / Learn / Operating Systems / Process States

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

  1. A new process is created and admitted.
  2. It waits in the ready queue for a CPU.
  3. The scheduler dispatches it to Running.
  4. It blocks for I/O and moves to Waiting.
  5. 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

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Operating Systems quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is Process States?
Lifecycle phases such as ready, running and waiting. It belongs to Operating Systems and is a beginner-level topic.
Where do people use Process States?
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.
What is the most common mistake with Process States?
Processes stuck in uninterruptible sleep, waiting on faulty I/O, cannot be killed even with SIGKILL.
What should I learn before this topic?
Start with Processes, the topic just before it in Operating Systems.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Operating Systems quiz.
Is Process States hard to learn?
It is a Beginner topic, so it works as an entry point. If the terms are new, read the explanation twice and try the visualizer before the quiz.
How long does it take to learn Process States?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Process States?
Processes, Process Control Block, System Calls are closely connected. The full list is in the related topics section of this page.
What should I study after Process States?
Continue with Process Control Block, the next topic in Operating Systems.

Related topics