Computer Science, asked by rrnairsa4003, 1 year ago

What is two-phase locking? How does it guarantee serializability?

Answers

Answered by Anonymous
0
In databases and transaction processing, two-phase locking (2PL) is a concurrency control method thatguarantees serializability. ... Expanding phase: locks are acquired and no locks are released. Shrinkingphase: locks are released and no locks are acquired.
Answered by Anonymous
1

In databases and transaction processing, two-phase locking (2PL) is a concurrency control method that guarantees serializability. ... The protocol utilizes locks, applied by a transaction to data, which may block (interpreted as signals to stop) other transactions from accessing the same data during the transaction's life.

Similar questions