438 views
0 votes
0 votes
When Ti attempts to write data item Q,

 if TS(Ti ) < w-timestamp(Q), then Ti is attempting to write an obsolete value

of {Q}. Rather than rolling back Ti as the timestamp ordering protocol would

have done, this {write} operation can be ignored.

This modification is valid as the any transaction with TS(Ti ) < W-timestamp(Q), the value

written by this transaction will never be read by any other transaction performing Read(Q)

ignoring such obsolete write operation is considerable.

DOUBT:-  Even though we perform a write operation requested by Ti any transaction which comes after the Ti will have a chance of reading that change made by Ti  by performing Read(Q) .

1 Answer

0 votes
0 votes

WriteTimeStamp(Q) and ReadTimeStamp(Q), both store the largest time stamp of any transaction that executed successfully.

Lets say we have two transactions, T1 and T2 such that TS(T1) < TS(T2).  Assume that T2 has already done W(Q), then WriteTimeStamp(Q) == TS(T2).  Now if T1 wants to do a W(Q) operation after T2, I can safely ignore this write operation.

Even if I allow the T1 to do W(Q), the WriteTimeStamp(Q) would still store T2’s time stamp (largest time stamp). And for any other transaction T3 that is trying to do a R(Q), the WriteTimeStamp(Q) would still point to the timestamp of T2 and not that of T1.

Any other transaction that comes after T1 and T2, would read the change made by T2 and not the change made by T1.
 

Related questions

0 votes
0 votes
0 answers
1
jayadev asked Jul 2, 2022
357 views
question about concurrency control methods
2 votes
2 votes
0 answers
2
1 votes
1 votes
3 answers
3
1 votes
1 votes
1 answer
4
techbrk3 asked Nov 9, 2017
1,685 views
The schedule is given below. Find out the category of the scheduleS: R1(X),R2(Z)R1(Z),R3(X) W1(X) W3(Y) R2(Y) W2(Z) W2(Y) C1 C2 C3Recoverable scheduleConflict Serializabl...