krok | akcja | log |
1 | <START T> | |
2 | READ(A,t) | |
3 | t:= t*2 | |
4 | WRITE(A,t) | <T,A,4,8> |
5 | READ(B,t) | |
6 | t:=t*2 | |
7 | WRITE(B,t) | <T,B,9,18> |
8 | FLUSH LOG | |
9 | OUTPUT(A) | |
10 | <COMMIT T> | |
11 | OUTPUT(B) |
Ale transakcje muszą speniać warunek:
1 | <START T> |
2 | <T,A,4,5> |
3 | <START T> |
4 | <COMMIT T> |
5 | <T,B,9,10> |
6 | <START CKPT(T)> |
7 | <T,C,14,15> |
8 | <START T> |
9 | <T,D,19,20> |
10 | <END CKPT> |
11 | <COMMIT T> |
12 | <COMMIT T> |