Professional Documents
Culture Documents
T1 T2 T3
R(Y)
R(Z)
R(B)
B:=B+(Y*.1)+Z*.2
Y:=Y-Y*.1
Z:=Z-Z*.2
W(B)
W(Y)
W(Z)
R(D)
R(Y)
D:=D-50
W(D)
Y:=Y+50
W(Y)
R(Z)
R(D)
Z:=Z-5
W(Z)
D:=D+5
W(D)
Number of transactions become nodes of the graph (in this scenario it is 3), while if a conflict occurs
between two transactions, an edge is made between the respected nodes. If there is a cycle or loop that
takes place in the graph, the schedule is not a serializable. If there is no loop, the schedule can be
serialized.
T1 T2 T3
R(Y)
R(Z)
R(B)
R(D)
R(Y)
D:=D-50
R(Z)
R(D)
Z:=Z-5
B:=B+(Y*.1)+Z*.2
Y:=Y-Y*.1
Z:=Z-Z*.2
W(D)
Y:=Y+50
W(Y)
W(Z)
D:=D+5
W(D)
W(B)
W(Y)
W(Z)
Z:=Z-Z*.2
W(B)
W(Y)
Y:=Y+50
W(Y)
D:=D+5
W(D)
W(Z)
cause problems for the younger ones. However, because this occurs less
frequently, the wound wait standstill prevention approach is more effective.