The Two-Phase Locking Protocol
T is said to follow the 2PL if all lock operations precede the first unlock.
T must also follow the courtesy rules, of course
Can think of such a T having two phases:
- Expanding: locks but no unlocks
- Shrinking: unlocks but no locks