Thursday, August 20, 2009

Methods for Handling

Deadlock

• Prevent
– write code such that the necessary conditions can
never hold simultaneously
• Avoid
– dynamically ensure that a deadlock state is not
reachable.
• Detect and recover
– allow deadlock but provide mechanisms to detect
it and recover (e.g., kill a process)
• Ignore (ostrich approach)
pretend they cannot occur and reboot if they do.

No comments: