Methods for Handling Deadlocks

Generally speaking, we can deal with the deadlock problem in one of three ways:
  1. We can use a protocol to prevent or avoid deadlocks, ensuring that the system will never enter a deadlock state.
  2. We can allow the system to enter a deadlock state, detect it, and recover.
  3. We can ignore (The Ostrich Algorithm; maybe if you ignore it, it will ignore you) the problem altogether and pretend that deadlocks never occur in the system.
Cem Ozdogan 2011-02-14