GATE CS 2025 Set 2 | Question 48
Operating Systems › Deadlock · MSQ · 2 marks · Answer: C, D
- Question 48Operating Systemsmsq2 marksare processes; are single-instance resources. Assignment edges: . Claim (wait) edges: . Which of the following statement(s) is/are CORRECT?
- A.Aborting makes the system deadlock free.
- B.Aborting makes the system deadlock free.
- C.Aborting makes the system deadlock free.✓
- D.Aborting and makes the system deadlock free.✓
Answer: C, D
Solution
Answer: (C) and (D) Build the wait-for graph ( if waits for a resource held by ):
There are two cycles: and . - Aborting breaks only the first cycle; remains → still deadlocked. (A) wrong. - Aborting breaks only the first cycle; remains. (B) wrong. - lies on both cycles, so aborting breaks both → deadlock free. (C) correct. - Aborting (breaks cycle 1) and (breaks cycle 2) removes both cycles → deadlock free. (D) correct.P1->P2, P2->P3, P3->P1, P2->P4, P4->P2 - A.
More GATE PYQ on Deadlock
All GATE CS Operating Systems PYQ →Attempt GATE CS 2025 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →