Thursday, August 20, 2009

Methods For Handling Deadlocks

*Deadlock Prevention

- Disallow one of the four necessary conditions

for dealock.

*Deadlock Avoidance

-Do not grant a resource request if this allocation

have potential to lead to a deadlock

*Deadlock Detection

- Always grant resource request when possible.

Periodically check for deadlock. If deadlock exists,

recover from it.

*Ignore the problem

- Makes sense if the likelihood is very low.

No comments: