Bird
Raised Fist0

Consider a process that is preempted by the scheduler while running. What is the correct sequence of state transitions that occur immediately after preemption until the process runs again?

medium🧠🧾 Concept Trace Q4 of Q15
Operating Systems - Process State Machine - Five-State Model
Consider a process that is preempted by the scheduler while running. What is the correct sequence of state transitions that occur immediately after preemption until the process runs again?
ARunning -> Terminated -> Ready -> Running
BRunning -> Ready -> Running
CRunning -> Waiting -> Ready -> Running
DRunning -> Ready -> Waiting -> Running
Step-by-Step Solution
Solution:
  1. Step 1: Identify preemption effect

    Preemption moves a process from Running to Ready, as it is temporarily stopped but still ready to run.
  2. Step 2: Process waits in Ready queue

    The process remains in Ready until scheduled again.
  3. Step 3: Scheduler dispatches process

    Process moves from Ready back to Running.
  4. Final Answer:

    Option B -> Option B
  5. Quick Check:

    Preemption causes Running->Ready->Running [OK]
Quick Trick: Preemption moves Running to Ready, not Waiting [OK]
Common Mistakes:
MISTAKES
  • Confusing preemption with I/O wait
  • Including Terminated incorrectly
  • Assuming Waiting state after preemption
Trap Explanation:
PITFALL
  • Candidates often mistake preemption as causing Waiting state instead of Ready.
Interviewer Note:
CONTEXT
  • Checks understanding of preemption and scheduling effects on process states.
Master "Process State Machine - Five-State Model" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes