If a system does not employ a protocol to ensure that deadlocks will never occur, then a detection-and-recovery scheme must be employed.
A deadlock-detection algorithm must be invoked to determine whether a deadlock has occurred.
If a deadlock is detected, the system must recover either by terminating some of the deadlock processes, or by preempting resources from some of the deadlocked processes.
In a system that selects victims for rollback primarily on the basis of cost factors, starvation may occur . As a result, the selected process never completes its designated task.
Thursday, August 20, 2009
Deadlock: Deadlock Detection and Recovery
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment