There are 3 methods by which deadlocks can be handled:-

  • Deadlock Prevention:-Do not allow the condition that may lead to deadlock.

  • Deadlock Avoidance:- Does not accept the resource request if it can lead to deadlock

  • Deadlock Detection:-Allow the resource request but periodically checks the deadlocks. If found then one of the transaction is aborted.

BY Best Interview Question ON 20 Feb 2019