edited by
1,536 views
2 votes
2 votes

Consider the following schedules: 

Which of the following is correct about above schedule?

  1. Only view serializable
  2. Only conflict serializable
  3. Both conflict and view serializable
  4.  Neither view serializable nor conflict serializable.

Please tell me the approach for checking view serializability ?

edited by

1 Answer

1 votes
1 votes
  • if a schedule is conflict serializable then it is view also.
  • if schedule is non conflict then it may or may not view. 
  • view serializable schedule is sufficent and necessary condition for serializability condition.i.e if a schedule is view then it must be a serialzable schedule.
  • for checking view we need to check three condition.
  1. final write 
  2. initial read
  3. updated read
  • in this example final write  in transaction T1 on data item a. then this schedule must be execute in last(T2 T3----->T1). Simillarlly final write in transaction T3 on data item on b. then this transaction must be execute in last (T1 T2----> T3)
  • NOW we make a serial schedule. there are 3 transaction so total 3!=6 serial schedule is possible. 
  • here first schedule is T1 T2 T3 . but according to final write  T1 in the last. (T2 T3---->T1) . so this cant be equvalent to this serial schedule.
  • simillarlly you are check for all serial schedule . then we get 2 schedule . 
  • simillarly we check for initial read . then we get it is not equvalent to any serial schedule.and we not need to check for updated write.

so this is nigher conflict nor view

Related questions

0 votes
0 votes
1 answer
2
atulcse asked Nov 2, 2021
459 views
Can a schedule be serializable if it is not view serializable? Are conflict equivalence and view equivalence the only two ways to decide if a schedule is serializable?
1 votes
1 votes
1 answer
3
1 votes
1 votes
1 answer
4