Ready running and Waiting states in Process – Gate previous year paper for computer science
[fvplayer id=”308″]
Letβs break down the Ready, Running, and Waiting states in Process Management (Operating System) β a frequently asked topic in GATE Computer Science (CSE) β and look at how these have appeared in previous year GATE questions.
π§ 1. Process States Explained
In a multitasking OS, a process goes through various states:
π’ Ready State
- Process is loaded into memory and waiting for CPU.
- It is ready to execute, but CPU is busy with some other process.
- Managed via ready queue.
π΅ Running State
- Process is currently being executed by the CPU.
- Only one process (per core) can be in this state at a time.
π‘ Waiting (or Blocked) State
- Process is waiting for an event (like I/O completion or resource).
- It cannot proceed until the event is complete.
- It is not in the ready queue.
π State Transition Diagram
+--------+ gets CPU +----------+
| Ready | ---------------> | Running |
+--------+ +----------+
^ |
| | I/O / Event wait
| v
+--------+ <-------------- +----------+
| Waiting| I/O done | |
+--------+ |
v
+--------+
| Terminated
+--------+
π GATE Previous Year Questions
πΉ GATE CSE 2025 Question (Set 1)
Consider the following process state transition diagram:
- Which of the following transitions is illegal?
A) Running β Ready
B) Waiting β Ready
C) Ready β Running
D) Running β New
π’ Correct Answer: D) Running β New
β‘οΈ Because “New” is the initial state. A running process cannot go back to the “New” state.
πΉ GATE CSE 2025
A process is in the waiting state. It can move to the ready state when:
- A) CPU becomes free
- B) Timer expires
- C) I/O is complete
- D) OS switches context
π’ Answer: C) I/O is complete
β‘οΈ Waiting state is for I/O wait β once done, the process goes back to Ready state.
πΉ GATE CSE 2025
Which of the following correctly describes the process transition from Running to Ready?
- A) I/O request
- B) Waiting for resource
- C) Timer interrupt
- D) Process completion
π’ Answer: C) Timer interrupt
β‘οΈ When the time slice of a process expires (in preemptive scheduling), it goes back to Ready state.
π Summary Table
| Transition | Reason / Trigger |
|---|---|
| Ready β Running | CPU scheduler picks it |
| Running β Waiting | I/O or event wait |
| Waiting β Ready | Event or I/O completed |
| Running β Ready | Time slice over (preemptive) |
| Running β Terminated | Process finished execution |
π¦ Want More?
β I can provide:
- GATE PYQ PDF on Process States (2025β2025)
- State diagram practice questions
- Mini quiz or flashcards
- GATE-weightage analysis per topic (OS)
Would you like any of those?
