1,537 views
0 votes
0 votes
Consider the following sequence of actions.
r1(A) r2(B) w1(C) r3(B) r3(C) w2(B) w3(A)
Which of the following time stamp ordering allowed to execute the schedule using basic time stamp protocol?

A) (T1, T2, T3) = (10, 30, 20)
B) (T1, T2, T3) = (20, 30, 10)
C) (T1, T2, T3) = (30, 20, 10)
D) (T1, T2, T3) = (10, 20, 30)

1 Answer

Best answer
5 votes
5 votes
Consider A-> T1 is reading it and then T3 is writing to it. While reading, R-ts(A) is set to max( R-ts(A), TS (1)). So, if R-ts(A) is So, T3 > T1

Consider B-> T2 is reading it and then T3 is again reading it and T2 is then writing to it. So, T2 > T3 (Reading only updates R-ts and and checks only W-ts)

Consider C -> T1 is writing to it and T3 is reading from it. So, T3 > T1

Thus, T1 < T3 < T2- option (A).

http://courses.cs.vt.edu/~cs5204/fall00/distributedSys/bto.html
selected by

Related questions

2.5k
views
1 answers
1 votes
LavTheRawkstar asked Mar 17, 2017
2,524 views
What is the difference between Pessimistic time stamp ordering and optimistic time stamp ordering.
1.9k
views
1 answers
0 votes
LavTheRawkstar asked Mar 17, 2017
1,921 views
What is the advantage and drawback of Multiversion Timestamp ordering in comparison with ordering Time stamp ordering? anyone please also explain what is this ... Timestamp ordering and what is the Timestamp ordering in simple words please?
1.3k
views
1 answers
0 votes
bts asked Jun 30, 2018
1,271 views
Which of the following is correct ? I.Two phase locking is an optimistic protocol. II. Two phase locking is pessimistic protocol III. Time stamping is an ... . Time stamping is pessimistic protocol.AI and IIIBII and IVCI and IVDII and III