edited by
1,753 views
3 votes
3 votes

Schedule S:- R1(A) R2(B) R3(C) R1(B) R2(C)R3(D)W1(C)W2(D)W3(E)   , following is the dependency graph

Which of the transaction is rollbacked if Time stamp order is?

a.) (T1,T2,T3)=(10,30,20)

b.)(T1,T2,T3)=(20,10,30)

Please explain approach to this?

edited by

1 Answer

Best answer
2 votes
2 votes
Firstly, the precedence graph or dependency graph arrows indicate the order in which conflict operations must be executed. Now in TO lowest TO number indicate oldest Transaction and you must be knowing that in TO protocol if latest transaction has performed a operation then older one is nit allowed it has to rollback.

Here in A) T3 has to perform the conflict operation first then the To-number of that data item will become 20 then T2 has to perform ooeration and it will make it 30. Then T1 will be performing operation on that data item but It's TO number is small than 30(TO number of that data item). Hence rollback.

Similarly it is for B).
selected by

Related questions

9 votes
9 votes
1 answer
1
Samujjal Das asked Nov 12, 2016
4,284 views
Which of the following schedule is allowed under basic time stamp protocol?S1: R1(X) R3(X) W1(X) R2(X) W3(X)S2: R1(X) R3(X) W3(X) W1(X) R2(X)S3: R3(X) R2(X) W3(X) R1(X) W...
2 votes
2 votes
1 answer
2
arch asked Nov 2, 2017
914 views
what is the meaning of TS(Ti) < WTS(Q) and TS(Ti) WTS(Q)Ti issuing read on data item Q.please someone clear my doubt i am very confuse in these terms.
0 votes
0 votes
1 answer
3
aditi19 asked Dec 1, 2018
1,148 views
T1: R(X), T2: W(X), T2: commit, T1: W(X), T1: commit, T3: R(X), T3: commitis this allowed in Thomas write rule?if yes then what will be the serial order