• edited by
5,705 views
1 1 vote
is conservative 2PL is recoverable schedule ?

3 Answers

3 3 votes

No,

“conservative 2PL (or static 2PL) requires a transaction to lock all the items it accesses before the transaction begins execution, by predeclaring its readset and write-set”

It is not mandatory to commit before unlocking the resource. Hence, Recoverability is not guaranteed.

Please correct me if I my understanding is incorrect.

0 0 votes
No,

In conservative 2PL, there is no growing phase so all transactions need to be aware of their future need and there is only a shrinking phase so, No need to commit before unlocking all locks. The transitions can unlock their locks if no need.

that's why there is a dirty read possible so we can’t say that the schedule is recoverable and cascadeless.
Position:
Show:

Related questions

4 4 votes
1 1 answer
7.2k
7.2k views
shashank023 asked Jul 25, 2017
7,206 views
Does the conservative two phase locking protocol produce cascadeless schedules?Let us consider the following schedule :Since in the schedule the lock on a is released, it...
1 1 vote
1 1 answer
5.0k
5.0k views
srestha asked Jan 26, 2018
4,990 views
We know, Conservative 2PL is another name of Strict 2PL. But According to Navathe bookConservative 2PL is deadlock free,but Strict 2PL can have deadlock.Then how both cou...
0 0 votes
2 2 answers
1.0k
1.0k views
ashunimbz asked Mar 30, 2019
1,048 views
How can 2PL protocol ( simple one ) ensure conflict serializability even though it cannot ensure freedom from deadlock ?I mean ,if a schedule is conflict serializable it...
2 2 votes
0 0 answers
992
992 views
vinay chauhan asked Jan 18, 2019
992 views
Is different 2 phase locking a subset of each other? For example, if the schedule is Strict 2PL then it will also be simple 2PL.Something like a 2PL is a subset of Strict...