8,011 views
2 2 votes
check whether it is view serializable or not?

schedule S:R1(X),W2(X),W1(X)

7 Answers

Best answer
12 12 votes
no it is not view serializable..
reason is there may b 2 schedule possible :
1. T1--->T2
2. T2----->T1z
 in case 1 final write of x is done by T2, but in given question final write of x is done by T1. so it violates condition of view serializability.
in case 2 initial read of T1 is updated value by T2 but in original question it is directly reads database.. again condition of view serialization failed..

so not serializable schedule..
• edited by
1 1 vote
This is definitely not CS as the precedence graph bears cycle.

This schedule is VS,as when we try to draw the view serializable graph ,we find no loops.
1 1 vote
schedule will be view serializable if 1. it is conflict  serializable then surly its vs.

                                                    2. if is not cs than we have to check blind write . if there is blind write then it may be or may not be vs. for that we have to draw poly graph . if there is cycle in the poly graph we can say its not vs other wise it is vs.or not serializable schedule also.

so this schedule is vs bcoz there is no cycle in poly graph.
0 0 votes
SCHEDULE IS VIEW SERIALIZABLE BUT NOT CONFLICT SERIALIZABLE SCHEDULE
Position:
Show:

Related questions

1 1 vote
1 1 answer
2.4k
2.4k views
Na462 asked Jan 13, 2019
2,353 views
Consider following Schedule S with data item x :S : W1(X) R2(X) W3(X) R4(X) W5(X) R6(X) W7(X) R8(X) W9(X) R10(X)The number of schedule view equivalent to Schedule S but n...
1 1 vote
1 1 answer
519
519 views
shreejeetp asked Dec 14, 2018
519 views
Is every serializable schedule view serializable?, or like conflict serializable, there could be a serializable schedule which isn’t view serializable?
4 4 votes
1 1 answer
3.6k
3.6k views
Na462 asked May 29, 2018
3,599 views
Consider the following schedules: Which of the following is correct about above schedule?Only view serializableOnly conflict serializableBoth conflict and view serializab...
10 10 votes
1 answers 1 answer
5.2k
5.2k views
flow2539 asked May 28, 2018
5,169 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...