edited by
3,706 views
0 votes
0 votes
is conservative 2PL is recoverable schedule ?
edited by

3 Answers

2 votes
2 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 votes
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.

Related questions

2 votes
2 votes
0 answers
1
vinay chauhan asked Jan 18, 2019
601 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...
1 votes
1 votes
1 answer
2
aditi19 asked Nov 25, 2018
456 views
T1: W(X), T2: R(Y), T1: R(Y), T2: R(X)does 2PL protocol allows it? T1 T2L-X(X)W(X)L-S(Y)R(Y)U(X) L-S(Y)R(Y)L-S(X)R(X)here T2 is granted lock on X as T1 enters sh...
0 votes
0 votes
0 answers
3
Parimal Paritosh asked Sep 2, 2018
419 views
Can someone explain how transactions can be serialized in order of their lock points (the point where the transactions acquire their final lock)?
1 votes
1 votes
0 answers
4
Na462 asked Jul 14, 2018
998 views
Consider the following schedules involving two transactions.Which of the following statements is true?A. Both S1 and S2 are allowed under 2PL.B. Only S2 is allowed under ...