The Great Truck Race

by Mark Serlin


An example of "synchronized" multi-threading
Press the start button and watch the trucks race. If you have a Java Console installed you can see the messaging. The trucks take strict turns to move and are based on the "Tortoise And Hare" pricipal - one moves little and often, the other seldom but further.
The point of this applet is to demonstrate two threads working n synchronization with each other, ie they take strict turns.