Strict Two-Phase Locking
Locking protocol
This locking protocol guarantees serializability:
- Obtain a shared lock on an item before reading it.
- Obtain an exclusive lock on an item before writing it.
- Release all locks at the end of commit (after durability ensured).
|