Timestamp Ordering Protocol: Cont. Basic Timestamp (TO) Algorithm Methods To Implement The Schemes
Timestamp Ordering Protocol: Cont. Basic Timestamp (TO) Algorithm Methods To Implement The Schemes
Tag
It determines the order in which the INSTRUCTION are to be execute
It is denoted as Ts(Ti)
Ts stands for timestamp
Where Ti stands for Name of the instruction
A transaction issues a request for a timestamp is allocated for this transaction
The timestamp ordering protocol also maintains the timestamp of last 'read' and 'write'
operation on a data.
Cont.
Basic timestamp (TO) Algorithm
Methods to implement the schemes
System Clock
Logical counter (It increment after a new timestamp has been assign)
T1 Ts(T1) at 6:00pm
.
.
.
.
T1 Ts(T1) at 6:o5 pm
TS(1) <Ts(2)
6:00 <6:05
Same logical counter for
C1<C2
Values
W-timestamp(Q)
R-timestamp(Q)
Validations on data items
W-timestamp(Q):
for successfully any data item Q, W-timestamp(Q) denotes the largest timestamp for any
transaction that execute write(Q)
W-timestamp(Q)
for successfully any data item Q, R-timestamp(Q) denotes the largest timestamp for any transaction
that execute write(Q)
1. Check the following condition whenever a transaction Ti issues a Read (X) operation: