1,174 views
1 votes
1 votes
S: r1(x),r2(x),w1(x),w2(x) it is view serializable or not

2 Answers

Best answer
2 votes
2 votes
The given schedule is not conflict serializable so now check for blind writes , if u get blind writes then the schedule may or may not be view serializable but if there are no blind writes then the schedule cannot be view serializable .And here we don't have any blind writes so the schedule is not view -equivalent to any serial schedule .
selected by
1 votes
1 votes
This schedule is not conflict serializable. Now we check for blinbd writes. Yes it has blind writes w1(x),w2(x). Now T1 says it reads initial value of x so in equivalent serial schedule T1 should occur first. Also the given schedule says T2 also reads initial value of x so in equivalent serial schedule T2 should occur first. So T1 occurs first before T2 and T2 occurs first before T1 which is actually not possible so given schedule is not view serializable. Also we can do by manually writing the schedules. As two transactions are there so possible serial schedules are

 

a) T1-->T2 r1(x),w1(x),       r2(x),w2(x)   - Here we see that T1 is reading initial value of x,the final write condition by T2 has been mainained  bt T2 is unable to read initial value of x as it is modified by T1's w1(x).

 

b)T2-->T1   r2(x),w2(x),       r1(x),w1(x)   - Here we see that T2 is reading initial value of x, BUT the final write condition by T2 is not  mainatined and also T1 is unable to read initial value of x as it is modified by T2's w1(x).

 

So  IT IS NOT VIEW SERIALIZABLE.

PLS CORRECT ME IF I WRONG

Related questions

1 votes
1 votes
1 answer
1
sambey4 asked Oct 15, 2021
304 views
Find View SerializableT1 : R1(A) , R1(B) , W1(B)T2 : R2(A) , R2(B) , W2(B)
0 votes
0 votes
0 answers
3
Upasana singh asked Oct 17, 2017
572 views
Consider the following schedule:S: r1(A), r3(D), w1(B), r2(B), r4(B), w2(C), r5(C), w4(E), r5(E), w5(B)The number of serial schedules which are view equal to schedule S ?...
7 votes
7 votes
3 answers
4
Supremo asked Jan 28, 2017
2,203 views
$S: R_1(A),R_2(B),W_2(A),W_3(C),R_4(C),R_3(A),W_3(B),R_4(A),W_2(B),W_4(B),W_3(A)$View serializable or not?