GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 18(a)

Process states with non-preemptive scheduling

Operating Systems · Processes, Threads & System Calls · Full GATE CSE 2002 paper

GATE 2002, Q18(a) Descriptive
Report issue

Processes, Threads & System Calls

Question 18(a), GATE 2002: Original18(a): Draw and label the process-state transitions for an OS with states created,ready,running,blocked(sleep/wait),terminated and only non-preemptive scheduling.
Question 18(a), GATE 2002: Original18(a): Draw and label the process-state transitions for an OS with states created,ready,running,blocked(sleep/wait),terminated and only non-preemptive scheduling.
Tap to enlarge
Answer & solution

Answer: Created→Ready (admit); Ready→Running (dispatch); Running→Blocked (wait); Blocked→Ready (event completes); Running→Terminated (exit). (no official key was published)

Use these five labelled transitions:
Created --admit--> Ready --dispatch--> Running --exit--> Terminated
Running --I/O request or event wait--> Blocked
Blocked --I/O or awaited event completes--> Ready
The scheduler selects a ready process when the CPU becomes available. There is no timer/preemption edge from Running to Ready in the conventional non-preemptive diagram. Waking a blocked process makes it ready; it does not immediately displace the running process. A system explicitly supporting voluntary yield could add a Running→Ready edge labelled yield, but no such extra mechanism is required by the question.

Original paper, page 9