Describe the Process State Transition Diagram. What triggers a process to move from Running to Waiting vs. Ready?

Last updated 5 July 2026

The process state diagram models a process's lifecycle through states like New, Ready, Running, Waiting (Blocked), and Terminated. The key distinction: a process leaves Running to Waiting voluntarily when it needs something unavailable, but to Ready involuntarily when the scheduler preempts it.

  • The core states: New: being created; Ready: runnable and waiting for the CPU; Running: executing on a core; Waiting/Blocked: parked pending an event; Terminated: finished.

  • Running to Waiting (voluntary block):

    • Triggered by the process needing an unavailable resource: an I/O request, waiting on a lock/semaphore, or a sleep()/wait() call.

    • It cannot proceed, so it yields the CPU until the event completes.

  • Running to Ready (involuntary preemption):

    • Triggered by the scheduler: a timer/quantum expiry or a higher-priority process arriving.

    • The process is still runnable, it just lost the CPU, so it goes back to the ready queue.

  • Waiting to Ready: When the awaited event finishes (I/O completes, lock released), the process becomes runnable again but must wait its turn for the CPU.

  • Key insight: There is no direct Waiting to Running transition: a woken process always passes through Ready first.

  • https://growthequityinterviewguide.com/firms/b-capital
  • https://www.interviewbit.com/sre-interview-questions/
  • https://www.reddit.com/r/cscareeradvice/new/
  • https://www.reddit.com/r/macbook/comments/1jg7fl6/24gb_ram_enough_for_software_engineering/
  • https://www.reddit.com/r/infosys/comments/1t71add/anyone_received_round_2_mails/
  • https://www.reddit.com/r/cscareeradvice/best/
  • https://www.reddit.com/r/LeetcodeChallenge/
  • https://www.reddit.com/r/infosys/comments/1t71i55/infosys_specialist_programmer_april_26_1st_round/
  • https://www.reddit.com/r/programming/comments/1hqo19u/static_search_trees_40x_faster_than_binary_search/
  • https://medium.com/@avinashkumar808482/operating-system-interview-questions-2026-0db6b4674980
  • https://lmskkhsou.in/eservices/e-Resources/Resources/NEP%20Syllabus%202024/core/BCA_Syllabus.pdf
All Operating Systems interview questions