1,061 views

3 Answers

2 2 votes

For having two schedules as view equivalent (hence view serializable),  we have to check for three conditions to be true in both schedules :

1.Initial Read

2.Write – Read pair

3.Final Write 

Here in this question as T3 reads A first so in every view equivalent schedule R3(A) remains same . Similarly T1 makes final write on A  so W1(A) remains same.

Now considering W-R pair since T1 reads value of  A written by T2,hence every view equivalent schedule must have same order .Here we can swap W3(A) and W2(A) means we can perform W3(A) before W2(A) and R1(A).

So one more possible view serializable schedule of the schedule S is R3(A), W3(A), W2(A), R1(A), W1(A);

Answer is one 

 

0 0 votes
T1T2T31
  R(a)2
 W(a) 3
R(a)  4
  W(a)5
W(a)  6


T1 should execute always in last( for last write rule)
T3 should come always first ( for initial read)
then possible order is only one T3->T2->T1  => 1
but here when T3 come first then W(a) of T3 can be put in 2 places(at 5 and between (2,3)) without affecting other Read/write 
So total view serializable schedule will be = 1 x 2 = 2 

 

 

Position:
Show:

Related questions

1 1 vote
1 1 answer
518
518 views
js__ asked Sep 7, 2025
518 views
S : r1(A) r3(D) w1(B)​ r2(B) w3(B) r4(B) w2(C) r5(C) w4(E) r5(E) w5(B)How many serial schedule view equal to schedule (s)
1 1 vote
0 0 answers
374
374 views
_09lalit asked Sep 2, 2024
374 views
while determining view serializability if we do not get to the write-read condition then what should we do