394 views
1 votes
1 votes

S:r1(P),r2(Q),r1(Q),r2(P),w1(Q),w2(P)

Predict serializability of  given schedule:


a) It is view serializable NOT conflict serializble

b) It is view serializable but NOT conflict serializble only if P= Q

c) It is view serializable and conflict serializble

d) It is neither view serializable nor conflict serializble

1 Answer

1 votes
1 votes
In the above given schedule ,

whe have a cycle in a precedence graph  so it is not conflict serializable .

How is Cycle formed ?

Consider T1 and T2 as nodes , you have an  edge from T1 to T2 beacuse there is a conflict operation of R1(P)-->W2(P)

you have an edge from T2 to T1 beacuse there is an conflict operation between R2(Q) --> W1(Q)

Hence a presence of cycle mean it is not Conflict serilizable

Let us check for View Serializable .

1 . Check for blind write ?

 since there is no Blind write so it not view serializable also ,

if there would have been blind write we would have follow polygraph technique and check for cycle too . However this is not required here

So the answer for above question is option D :)

Related questions

0 votes
0 votes
1 answer
1
sh!va asked Feb 10, 2017
378 views
T1T2READ-Q WRITE-P WRITE-QREAD-P Given schedule is:a) Not conflct serializable, but view serializableb) conflct serializable, not view serializablec) Both conflct seria...
1 votes
1 votes
3 answers
2
learncp asked Sep 18, 2015
1,508 views
Suppose we have a schedule containing two transactions  as shown-$\begin{bmatrix} T1 & T2 \\ R(A) & \\ W(A) & \\ & R(A) \\  & W(A) \\ R(B)& \\ W(B)& \\ & R(B) \\  & W(...
3 votes
3 votes
2 answers
3
0 votes
0 votes
1 answer
4
atulcse asked Jan 10, 2022
399 views
Consider the following schedule:R2(A), R1(A), R3(B), W3(B), W2(A), R1(A)Is the above schedule view serializable?