1,062 views
2 2 votes

Which of the following schedules are allowed by strict 2pl with shared and xclusive locks -

  1. r1(A); r2(B); r3(C); w1(B); c1; w2(C); c2; w3(D); c3
  2. r1(A); r2(B); r3(C); r1(B); r2(C); r3(D); c3; w1(C); c1; w2(D); c2
  3. r1(A); r2(B); r3(C); w1(B); w2(C); w3(A); c1; c2; c3
  4. None of the above

The solution given is 3). But how can the solution be 3) as it is not conflict serializable?

Is this the correct procedure to determine if a schedule is strict 2pl -

Check for conflict serializablility and strict recoverability and both must be satisfied.

In the above 1) and 2) satisfy conflict serializablility and strict recoverability. Then which is the correct solution?

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
2 2 answers
2.6k
2.6k views
susgir2 asked Jan 4, 2019
2,584 views
Please explain. Use the below transaction.
4 4 votes
2 2 answers
3.2k
3.2k views
learncp asked Oct 7, 2015
3,183 views
$\begin{bmatrix} T1 &T2 \\ R(A) & \\ W(A)& \\ & R(A)\\ & W(A)\\ &R(B) \\ &W(B) \\ & Commit\\ Abort& \end{bmatrix}$How is this schedule allowed in 2PL ? In 2PL , there mus...
10 10 votes
1 answers 1 answer
5.2k
5.2k views
flow2539 asked May 28, 2018
5,170 views
I am looking for some clarity on this topic. Here is some random schedule as an example:$r1(x) w1(x) r2(x) w2(x) r3(y) r3(x) w3(x) c3 a1 c2$I was told, that for conflict...
0 0 votes
2 2 answers
1.0k
1.0k views
ashunimbz asked Mar 30, 2019
1,033 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...