04 Try it yourself Interactive

Step the schedule, watch the graph

The same two transactions from section 02, run twice. S1 is the schedule you already traced. S2 is S1 with operations 6 and 7 swapped, so T2 reads B before T1 writes it, and nothing else is different. Press Next to run one operation. After each one you get the value on disk in both rows and the precedence graph as it stands: the emerald counter is edges running T1 to T2, the rose counter is edges running the other way, and the schedule is rejected the moment both are above zero. Nothing plays on its own. Next, Back and Reset, or the arrow keys.

S1
A = 100 · B = 50 · no edges yet
The first two cards are the two rows as they sit on disk. The third is the precedence graph after this operation. Indigo marks what the step touched.
Press Next to run the first operation.


      
Row A100
Row B50
Edges T1 to T20
Edges T2 to T10
step 0 / 0