Running under native JVM Choice mode is pseudorandom Resource type PriorityInheritance Car 0, priority 6, heading north going straight Car 1, priority 2, heading south going left Car 2, priority 8, heading east going left Simulation starts at time (0 ms, 0 ns) under mode pseudorandom 3 choices available for next event: ((0 ms, 0 ns), 6, Car 0, priority 6, heading north going straight) ((0 ms, 0 ns), 2, Car 1, priority 2, heading south going left) ((0 ms, 0 ns), 0, RealtimeThread 0 (priority 0)) selecting ((0 ms, 0 ns), 2, Car 1, priority 2, heading south going left) (0 ms, 0 ns) Car 1, priority 2, heading south going left approaches intersection (0 ms, 0 ns) Car 1, priority 2, heading south going left starts seize of Northwest (currently not held) (0 ms, 0 ns) Car 1, priority 2, heading south going left gets Northwest (0 ms, 0 ns) Car 1, priority 2, heading south going left starts seize of Northeast (currently not held) (0 ms, 0 ns) Car 1, priority 2, heading south going left gets Northeast (0 ms, 0 ns) Car 1, priority 2, heading south going left proceeds (0 ms, 0 ns) Car 1, priority 2, heading south going left begins hold of (50000 ms, 0 ns) 2 choices available for next event: ((0 ms, 0 ns), 6, Car 0, priority 6, heading north going straight) ((0 ms, 0 ns), 0, RealtimeThread 0 (priority 0)) selecting ((0 ms, 0 ns), 0, RealtimeThread 0 (priority 0)) (0 ms, 0 ns) RealtimeThread 0 (priority 0) begins hold of (5000 ms, 0 ns) (0 ms, 0 ns) Car 0, priority 6, heading north going straight approaches intersection (0 ms, 0 ns) Car 0, priority 6, heading north going straight starts seize of Southeast (currently not held) (0 ms, 0 ns) Car 0, priority 6, heading north going straight gets Southeast (0 ms, 0 ns) Car 0, priority 6, heading north going straight releases Southeast (0 ms, 0 ns) no one waiting for Southeast (0 ms, 0 ns) Car 0, priority 6, heading north going straight starts seize of Northeast (currently held by Car 1, priority 2, heading south going left) (0 ms, 0 ns) >>>> Car 1, priority 2, has priority increased to 6 (0 ms, 0 ns) Car 0, priority 6, heading north going straight waits for Northeast held by Car 1, priority 6, heading south going left (5000 ms, 0 ns) RealtimeThread 0 (priority 0) returns from hold of (5000 ms, 0 ns) (5000 ms, 0 ns) *** RealtimeThread 0 terminates (5000 ms, 0 ns) Car 2, priority 8, heading east going left approaches intersection (5000 ms, 0 ns) Car 2, priority 8, heading east going left starts seize of Southwest (currently not held) (5000 ms, 0 ns) Car 2, priority 8, heading east going left gets Southwest (5000 ms, 0 ns) Car 2, priority 8, heading east going left starts seize of Southeast (currently not held) (5000 ms, 0 ns) Car 2, priority 8, heading east going left gets Southeast (5000 ms, 0 ns) Car 2, priority 8, heading east going left proceeds (5000 ms, 0 ns) Car 2, priority 8, heading east going left begins hold of (12500 ms, 0 ns) (17500 ms, 0 ns) Car 2, priority 8, heading east going left returns from hold of (12500 ms, 0 ns) (17500 ms, 0 ns) Car 2, priority 8, heading east going left one third through (17500 ms, 0 ns) Car 2, priority 8, heading east going left releases Southwest (17500 ms, 0 ns) no one waiting for Southwest (17500 ms, 0 ns) Car 2, priority 8, heading east going left begins hold of (12500 ms, 0 ns) (30000 ms, 0 ns) Car 2, priority 8, heading east going left returns from hold of (12500 ms, 0 ns) (30000 ms, 0 ns) Car 2, priority 8, heading east going left two thirds through (30000 ms, 0 ns) Car 2, priority 8, heading east going left starts seize of Southwest (currently not held) (30000 ms, 0 ns) Car 2, priority 8, heading east going left gets Southwest (30000 ms, 0 ns) Car 2, priority 8, heading east going left releases Southeast (30000 ms, 0 ns) no one waiting for Southeast (30000 ms, 0 ns) Car 2, priority 8, heading east going left begins hold of (12500 ms, 0 ns) (42500 ms, 0 ns) Car 2, priority 8, heading east going left returns from hold of (12500 ms, 0 ns) (42500 ms, 0 ns) Car 2, priority 8, heading east going left exits (42500 ms, 0 ns) Car 2, priority 8, heading east going left releases Southwest (42500 ms, 0 ns) no one waiting for Southwest (42500 ms, 0 ns) *** Car 2 terminates (50000 ms, 0 ns) Car 1, priority 6, heading south going left returns from hold of (50000 ms, 0 ns) (50000 ms, 0 ns) Car 1, priority 6, heading south going left one third through (50000 ms, 0 ns) Car 1, priority 6, heading south going left releases Northwest (50000 ms, 0 ns) no one waiting for Northwest (50000 ms, 0 ns) Car 1, priority 6, heading south going left begins hold of (16666 ms, 666666 ns) (66666 ms, 666666 ns) Car 1, priority 6, heading south going left returns from hold of (16666 ms, 666666 ns) (66666 ms, 666666 ns) Car 1, priority 6, heading south going left two thirds through (66666 ms, 666666 ns) Car 1, priority 6, heading south going left starts seize of Southeast (currently not held) (66666 ms, 666666 ns) Car 1, priority 6, heading south going left gets Southeast (66666 ms, 666666 ns) Car 1, priority 6, heading south going left releases Northeast (66666 ms, 666666 ns) <<<< Car 1, priority 6, has priority reduced to 2 (66666 ms, 666666 ns) Northeast is given to Car 0, priority 6, heading north going straight (66666 ms, 666666 ns) Car 1, priority 2, heading south going left begins hold of (50000 ms, 0 ns) (66666 ms, 666666 ns) Car 0, priority 6, heading north going straight gets Northeast (66666 ms, 666666 ns) Car 0, priority 6, heading north going straight releases Northeast (66666 ms, 666666 ns) no one waiting for Northeast (66666 ms, 666666 ns) Car 0, priority 6, heading north going straight starts seize of Southeast (currently held by Car 1, priority 2, heading south going left) (66666 ms, 666666 ns) >>>> Car 1, priority 2, has priority increased to 6 (66666 ms, 666666 ns) Car 0, priority 6, heading north going straight waits for Southeast held by Car 1, priority 6, heading south going left (116666 ms, 666666 ns) Car 1, priority 6, heading south going left returns from hold of (50000 ms, 0 ns) (116666 ms, 666666 ns) Car 1, priority 6, heading south going left exits (116666 ms, 666666 ns) Car 1, priority 6, heading south going left releases Southeast (116666 ms, 666666 ns) <<<< Car 1, priority 6, has priority reduced to 2 (116666 ms, 666666 ns) Southeast is given to Car 0, priority 6, heading north going straight (116666 ms, 666666 ns) *** Car 1 terminates (116666 ms, 666666 ns) Car 0, priority 6, heading north going straight gets Southeast (116666 ms, 666666 ns) Car 0, priority 6, heading north going straight starts seize of Northeast (currently not held) (116666 ms, 666666 ns) Car 0, priority 6, heading north going straight gets Northeast (116666 ms, 666666 ns) Car 0, priority 6, heading north going straight proceeds (116666 ms, 666666 ns) Car 0, priority 6, heading north going straight begins hold of (16666 ms, 666666 ns) (133333 ms, 333332 ns) Car 0, priority 6, heading north going straight returns from hold of (16666 ms, 666666 ns) (133333 ms, 333332 ns) Car 0, priority 6, heading north going straight halfway through (133333 ms, 333332 ns) Car 0, priority 6, heading north going straight releases Southeast (133333 ms, 333332 ns) no one waiting for Southeast (133333 ms, 333332 ns) Car 0, priority 6, heading north going straight begins hold of (16666 ms, 666666 ns) (149999 ms, 999998 ns) Car 0, priority 6, heading north going straight returns from hold of (16666 ms, 666666 ns) (149999 ms, 999998 ns) Car 0, priority 6, heading north going straight exits (149999 ms, 999998 ns) Car 0, priority 6, heading north going straight releases Northeast (149999 ms, 999998 ns) no one waiting for Northeast (149999 ms, 999998 ns) *** Car 0 terminates (149999 ms, 999998 ns) Simulation ends ==================================================================== *** Resource utilization statistics: *** Northeast: busy 66% of elapsed time Northwest: busy 33% of elapsed time Southeast: busy 61% of elapsed time Southwest: busy 16% of elapsed time Thread life times Car 0, priority 6, heading north going straight: life time (149999 ms, 999998 ns), 77% wait time, average priority 6.0 Car 1, priority 2, heading south going left: life time (116666 ms, 666666 ns), 0% wait time, average priority 5.111111111134814 Car 2, priority 8, heading east going left: life time (37500 ms, 0 ns), 0% wait time, average priority 8.0 RealtimeThread 0 (priority 0): life time (5000 ms, 0 ns), 0% wait time, average priority 0.0 91 real milliseconds run time