1. function global_simulation()

2. send (“i”, 0, Ø) to the topmost coordinator

3. t = min(tn of the topmost coordinator, time of first event in inputData or ;)

4. while (t ≠)

5. foreach event ev in inputData with time = t

6. extract ev from inputData

7. send(“x”, t, ev) to the topmost coordinator

8. send(“@”, t, Ø) to the topmost coordinator

9. lookahead = time of first event in inputData or ;

10. send(“*”, t, lookahead) to the topmost coordinator

11. t = Min(tn of the topmost coordinator, time of first event in inputData)

12. end global_simulation