Question:

In two-phase locking (2PL), a transaction must be _______ .

Show Hint

The two-phase locking protocol ensures serializability and prevents deadlocks by enforcing a strict order in acquiring and releasing locks.
Updated On: Jun 16, 2025
  • Release all locks before acquiring new ones
  • Acquire all locks before releasing any
  • Use only shared locks
  • Avoid deadlocks by timeouts
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Two-phase locking protocol requires that a transaction must acquire all locks before releasing any. This ensures that the transaction follows the "growing phase" and "shrinking phase," which are essential for preventing deadlocks.
Was this answer helpful?
0
0