Question

Which of the following statements is/are TRUE with respect to deadlocks?

Choose every correct option
Official answer and solution
Official answer
A and D
From
Official GATE 2022 answer key

Solution

Evaluate deadlock necessary conditions, resource allocation graphs, and safety definitions.

Evaluating each statement:

  • (A) TRUE: Circular wait is one of the four Coffman conditions (mutual exclusion, hold and wait, no preemption, circular wait). All four conditions are strictly necessary for deadlock to occur.
  • (B) FALSE: In systems with multiple instances per resource type, a cycle in the resource allocation graph is a necessary condition, but not a sufficient condition for deadlock.
  • (C) FALSE: An unsafe state indicates that the system cannot guarantee that all processes will finish if each requests its maximum resource claim simultaneously. However, processes might not request their maximum claims, so deadlock is possible but not guaranteed to occur.
  • (D) TRUE: In a resource allocation graph, if all edges are assignment edges (Rj→PiR_j \to P_i) and there are no request edges (Pi→RjP_i \to R_j), then no process is waiting for any resource. Without waiting processes, deadlock cannot exist.
Final answer

Options (A), (D)

Common trap

Assuming that an unsafe state always implies that deadlock will occur.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2022 Computer Science and Information Technology (CS)
Question
26 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.