READ(A,t); t:=t*2; WRITE(A,t); READ(B,t); t:=t*2; WRITE(B,t);Niech A ma początkowo wartość 4, a B 9.
krok | akcja | log |
1 | <START T> | |
2 | READ(A,t) | |
3 | t:= t*2 | |
4 | WRITE(A,t) | <T,A,4> |
5 | READ(B,t) | |
6 | t:=t*2 | |
7 | WRITE(B,t) | <T,B,9> |
8 | FLUSH LOG | |
9 | OUTPUT(A) | |
10 | OUTPUT(B) | |
11 | <COMMIT T> | |
12 | FLUSH LOG |
1 | <START T> |
2 | <T,A,5> |
3 | <START T> |
4 | <T,B,10> |
5 | <START CKPT(T,T)> |
6 | <T,C,15> |
7 | <START T> |
8 | <T,D,20> |
9 | <COMMIT T> |
10 | <T,E,25> |
11 | <COMMIT T> |
12 | <END CKPT> |
13 | <T,F,30> |