Question 27

Computer Awareness Deadlock Medium

Which of the following is a way to recover from the deadlock which has already occurred?

(A) Process termination
(B) Non preemption of resources
(C) Banker's algorithm
(D) Circular wait
View Dynamic Solution & Explanation
Correct Solution: Option A

Step-by-step Solution:

Solution:

We are asked about a way to recover from a deadlock which has already occurred.

Option Analysis:

  • (A) Process termination ✅ – One way to recover is to abort one or more processes involved in the deadlock to break the cycle.
  • (B) Non-preemption of resources ❌ – This is a condition that can lead to deadlock, not a recovery mechanism.
  • (C) Banker’s algorithm ❌ – This is a deadlock avoidance technique (used before deadlock occurs), not recovery.
  • (D) Circular wait ❌ – This is one of the necessary conditions for deadlock, not a recovery method.

✅ Correct Answer: (A) Process termination