Explain the necessary techniques to control deadlocks?
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.