Concurrency Control Flashcards

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is strict two phase locking?

A

Here a transaction must hold all its exclusive locks till it commits/aborts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly