GATE CS 2025 Set 2 — Question 48

Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.
MSQ+2 / -0MediumResource Allocation GraphDeadlocksOperating SystemDeadlock Recovery

Operating System → Deadlocks → Deadlock Recovery

Last updated

Question

P={P1,P2,P3,P4}P = \{P_1, P_2, P_3, P_4\} consists of all active processes in an operating system.
R={R1,R2,R3,R4}R = \{R_1, R_2, R_3, R_4\} consists of single instances of distinct types of resources in the system.
The resource allocation graph has the following assignment and claim edges.
Assignment edges: R1P1,R2P2,R3P3,R4P4R_1 \to P_1, R_2 \to P_2, R_3 \to P_3, R_4 \to P_4 (the assignment edge R1P1R_1 \to P_1 means resource R1R_1 is assigned to process P1P_1, and so on for others)
Claim edges: P1R2,P2R3,P3R1,P2R4,P4R2P_1 \to R_2, P_2 \to R_3, P_3 \to R_1, P_2 \to R_4, P_4 \to R_2 (the claim edge P1R2P_1 \to R_2 means process P1P_1 is waiting for resource R2R_2, and so on for others)
Which of the following statement(s) is/are CORRECT?
Your answer

Select all that apply, then check your answer.

The solution stays hidden until you check.

Continue learning with Success Tracker

A step still unclear? Work through it with support

Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.

AI-powered practice· Unlimited practice on eligible plans
PYQs with solutions
Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
Practice that adapts
Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
AI doubt support
Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.

Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.

This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.

More questions on Deadlocks