3,245 views
1 1 vote
there is a schedule which is allowed in Thomas write rule so it is view serializable. Suppose at a point write operation of an older transaction is ignored. then the same operation will be ignored in its serial order?

1 Answer

1 1 vote

Thomas write rule will guarantee VIEW Serializability as

Suppose you have a schedule S: r1(a) w2(a) w1(a)

suppose you have a Serial Schedule T1T2 i.e. T1 occurs first in the system

T1T2: r1(a) w1(a)      w2(a)

We know that T1T2 is a serial schedule as It preserves its first read as in S so we can clearly see that it is not preserving view Serializability as last write should be of T1 but in this serial schedule it is of T1.

 

Now Thomas write rule comes into picture. as T1 timestamp is less than T2 T1 must have happened before T2. Now its write will be ignored by the system so the schedule now becomes:

 S: r1(a) w2(a) w1(a)  

And our serial schedule as per Thomas write rule will only be T1 T2 (not T2T1)

T1T2: r1(a) w1(a) w2(a)

Just focus on the strike through

Who is making first read and last write to the data items in both the Serial schedule T1T2 and in our schedule S? 

Ans: T1 and T2 respectively

So yes Thomas write rule maintains VIEW SERIALIZABILITY but does not guarantee Conflict Serializability.

Although this explanation will come handy to you in order to solve GATE 2019 question on view and conflict serialisability.

Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
1.8k
1.8k views
iarnav asked Dec 11, 2017
1,837 views
does graph based and time stamp ordering protocol ensure freedom from cascadeless rollback?
0 0 votes
2 2 answers
2.1k
2.1k views
Aakash_ asked Jan 10, 2019
2,081 views
Why having a Blind Write may help a schedule(which is not conflict serializable) to be view serializable ?I can see check the condition and verify this. but i don’t under...
0 0 votes
1 1 answer
650
650 views
anupamsworld asked Jul 26, 2022
650 views
Which of the following time stamp ordering protocol(s) allow(s) the following schedule?S: W1(A), W2(A), W3(A), R2(A), R4(A);Time Stamps: T1:5, T2:10, T3:15, T4:20Tomas Wr...
1 1 vote
0 0 answers
875
875 views
Karishma Datt asked Jul 24, 2022
875 views
Need some help , In this question W3(B) , W2(B) is allowed in TWR bit confuse between option b and d . Plz help me which option is correct between b and d with proper jus...