Database Management System20825 marksTwo-phase locking protocol
What is two phase locking protocol? How can it lead to the deadlock condition?
What is two phase locking protocol? How can it lead to the deadlock condition? [5]
Two Phase Locking (2PL) is a concurrency control protocol that ensures serializability of transactions by regulating when locks can be acquired and released. It states that: A transaction must acquire all the locks it needs before releasing any lock. The protocol divides the execution of a transa...