A multi threaded traffic simulation.  This example simulates 3 cars on a road with 1 stop light.  The cars move at 1 position per second and start at positions 24, 12, and 0.  The stoplight is located at position 50 and alternates between red and green every 10 seconds.  If a car is at the stoplight and the light is red, the car stops until the traffic light turns green.