What are the different methods for handling deadlocks?
- Deadlock detection and recovery: Permit the system to enter a deadlock state, detect it and after that recover.
- Deadlock prevention: Use a protocol to make sure that the system will never enter a dead lock state.
3. Deadlock avoidance: Avoid deadlock by vigilant resource scheduling.