is it true that
if schedule is 2pl(P) then it is serializable(Q) too
It is mentioned one of in comment of answer https://gateoverflow.in/1484/gate1999-2-6
I don't think so
T1 |
T2 |
|
Write B (T2 acquire Ex(B)) |
Write B(T1 not able acquire Ex(B)) |
|
|
Write A (T2 acquire Ex(A)) |
Write A(T1 not able acquire Ex(A)) |
|
|
Write A(T2 already holds Ex(A)) |
Cleary it is 2PL but not serializable (as there is cycle)
So my question is "Is there any correlation between 2PL and serializability"