Assuming the operating system detects the system is deadlocked, what can the operating
system do to recover from deadlock?
Answer:
The operating system can recover from deadlock by:
- Killing the deadlocked process (crude, and requires that it will be restarted)
- Rolling Back (going back a few instructions until it can enter a non-deadlocked state, and retry)
- Pre-emption (forcing the handing over of a resource to another process, at the expense of the one it's currently deadlocked on)