2 Phase Locking

Two-phase locking - Wikipedia

In databases and transaction processing, two-phase locking (2PL) is a concurrency control method that guarantees serializability

  1. Growing Phase: New locks on data items may be acquired but none can be released.
  2. Shrinking Phase: Existing locks may be released but no new locks can be acquired.

Two major types of locks are used:

Further Reading