BLOGGER TEMPLATES AND TWITTER BACKGROUNDS

Thursday, August 20, 2009

Deadlock: Deadlock Detection and Recovery

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.

0 comments: