Question:medium

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

Show Hint

When recovering from a deadlock, terminating processes involved in the deadlock is one of the quickest solutions.
Updated On: Mar 7, 2026
  • Process termination
  • Non preemption of resources
  • Banker's algorithm
  • Circular wait
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Deadlock Recovery.
When a deadlock occurs, recovery is achieved through: - Process Termination: Ending one or more deadlock-involved processes to resolve circular waiting.
- Resource Preemption: Seizing resources from processes to break the hold-and-wait condition.

Step 2: Evaluation of Alternatives.
- (2) Non-preemption of Resources: This is a deadlock condition, not a recovery strategy.
- (3) Banker's Algorithm: A deadlock prevention method, inapplicable to post-deadlock recovery.
- (4) Circular Wait: A cause of deadlock, not a recovery technique.

Step 3: Determination.
The valid deadlock recovery method is process termination (1).

Was this answer helpful?
0