Concurrency Control Flashcards
1
Q
A
2
Q
The locking protocol has 2 stages. Name and describe them.
A
Phase 1: Growing Phase
transaction may obtain locks
transaction may not release locks
Phase 2: Shrinking Phase
transaction may release locks
transaction may not obtain locks
3
Q
What is strict two phase locking?
A
Here a transaction must hold all its exclusive locks till it commits/aborts.
4
Q
What is rigorous 2 phased locking
A
Here all locks are held till commit/abort. In this protocol transactions can be serialized in the order in which they commit.