The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
144 views
Sort these various versions of Two Phase locking protocols in increasing order of restricted-ness:

1. 2-PL(normal)

2. S-2PL(Strict)

3. R-2PL(Rigorous)

4. C-2PL (Conservative)

5. LC-2PL(Lock Conversion)
asked in Databases by Loyal (3k points) | 144 views

1 Answer

+1 vote
Normal < Conservative < Strict < Rigorous.

1) In Rigorous 2PL, a transaction does not release any of it's locks until after it commits.

2) In Strict 2PL, a transaction does not release any of it's exclusive lock until after it commits.

This makes R-2PL more strict than S-2PL.

3) Conservative 2PL has no such lock release restrictions.

4) And Normal 2PL is the simplest one.
answered by Junior (859 points)
What about lock-conversion 2PL,i.e upgrading(shared to exclusive) and downgrading(exclusive to shared) of locks?


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

28,945 questions
36,792 answers
91,049 comments
34,688 users