Recovery from Deadlock
When a system is deadlocked there two possibilities to recover from deadlock;
- one is simply to abort one or more process to break circular wait, and other is preempt some process which are involved in the deadlock.
- In order to abort a process; we check the priority of process, completion time, resources used, how many processes will need to be terminated etc.
- Recovery from deadlock is simply abort all deadlocked and reclaim resources.
- Resources preemption is also one of the solution for deadlock recovery.