edited by
4,290 views
9 votes
9 votes

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) W1(X)

S4: R1(X) R3(X) R2(X) W1(X) W3(X)

A. S1

B. S2

C. S3

D. S4

edited by

1 Answer

Best answer
13 votes
13 votes

As we know there exists one to one correspondence between :

a) Basic timestamp schedule and conflict serialisable.

b) Thomas Write timestamp schedule and view serialisable

So basically we have to check which one is conflict serialisable..

A) is not conflict serialisable as we have conflict pairs R1(X) - W3(X) and R3(X) - W1(X) .Making the precedence graph cyclic hence and hence not conflict serialisable..

B) is not conflict serialisable as we have conflict pairs R1(X) - W3(X) and W3(X) - W1(X) .Making the precedence graph cyclic hence and hence not conflict serialisable..

D) is not conflict serialisable as we have conflict pairs R1(X) - W3(X) and R3(X) - W1(X) .Making the precedence graph cyclic hence and hence not conflict serialisable..

But C) does not any such conflict pairs which are resulting to cycle in precedence graph..Hence it is conflict serialisable and hence alowed under basic 2PL protocol..

Hence C) option should be correct..

edited by

Related questions

3 votes
3 votes
1 answer
1
rahul sharma 5 asked Jan 8, 2017
1,758 views
Schedule S:- R1(A) R2(B) R3(C) R1(B) R2(C)R3(D)W1(C)W2(D)W3(E) , following is the dependency graphWhich of the transaction is rollbacked if Time stamp order is?a.) (T1,...
0 votes
0 votes
1 answer
2
aditi19 asked Dec 1, 2018
1,150 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
0 votes
0 votes
0 answers
4
Karishma Datt asked Jul 24, 2022
246 views
Need help in time stamp ordering .