• edited by
5,912 views
9 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

1 Answer

Best answer
13 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
Position:
Show:

Related questions

0 0 votes
1 1 answer
629
629 views
Karishma Datt asked Jul 24, 2022
629 views
Need help in time stamp ordering .
3 3 votes
1 answers 1 answer
3.0k
3.0k views
rahul sharma 5 asked Jan 8, 2017
3,012 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 0 votes
1 1 answer
951
951 views
0 0 votes
1 1 answer
1.8k
1.8k views
aditi19 asked Dec 1, 2018
1,754 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