1,240 views
5 votes
5 votes
Is it Conservative 2 Phase locking (C2PL) ?

T1

LOCK-X (A)
LOCK-S (B)
R(A)
R(B)
W(A)
UNLOCK (A)
COMMIT
UNLOCK (B)

1 Answer

Best answer
10 votes
10 votes
yeah it is conservative cause in conservative u have to acquire all lock before transaction starts,but u acn release it at any time.but it is not strict or rigorous.in strict u can only release shared lock before commit operation,but u cannot release xclusive lock before commit,and in rigorous u cant relaese any lock before comit.
selected by

Related questions

1 votes
1 votes
1 answer
2
palashbehra5 asked Jan 17, 2022
1,044 views
Given Problem : S1 can be shown allowed under 2PL.However, the solution that they have provided for S2 : Seems wrong, as So, is S2 allowed under 2PL, or the answer give...
1 votes
1 votes
0 answers
3