Define two-phase locking protocol.
Ans: Two-phase locking is significance in the context of ensuring that schedules are serializable. The two-phase locking protocol defines a process each transaction follows.
The two-phase locking protocol
1. Previous to operating on any row, a transaction must obtain a lock on that row.
2. After releasing a lock, a transaction should never obtain any more locks.