Methods for Handling Deadlocks Methods for Handling Deadlocks
- Deadlock Prevention: ensure that the system will never enter
a deadlock state – expensive operations
· Need to monitor all lock acquisitions
· Selectively deny those that might lead to deadlock
- Deadlock Detection: allow the system to enter a deadlock
state and then recover.
· Requires deadlock detection algorithm
· Technique for forcibly preempting resources and/or terminating tasks
- Ignore the problem and pretend that deadlocks never occur
in the system
· Used by most operating systems, including UNIX
0 comments:
Post a Comment