Consider the following statements about deadlock: A. Existence of a cycle in resource-allocation graph indicates deadlock.
Consider the following statements about deadlock:
A. Existence of a cycle in resource-allocation graph indicates deadlock.
B. Existence of a cycle in wait-for graph indicates deadlock.
C. Mutual-exclusion, hold and wait, no preemption and circular wait conditions, if occur simultaneously, may lead to deadlock.
Mark the correct option :
Show answerHide answer
Correct answer: (D) Only (b) and (c) are correct
Explanation
Corrected: the book's key says (c). A cycle in a resource-allocation graph does not always mean deadlock (with multiple instances), so A is false; B and C are correct.