[cs33211] CS33211 Project Question

Mikhail Nesterenko mikhail at cs.kent.edu
Fri Oct 12 15:16:00 EDT 2012


> 
>  First, if east_cars are waiting to enter the zone, how do I ensure
> that they leave the zone in the order in which they came to wait for
> it? Ex) Car W1 enters, Car E1 enters, Car E2 enters, Car W1
> exits... How do I ensure Car E1 exits *then *Car E2 exits?  Thank
> you.

Keep track of the exit time of the car that is currently in the
construction zone. If another car enters, set the exit time for the
new car to the maximum of the exit time of the first car and the
second car.

Thanks,
-- 
Mikhail


More information about the cs33211 mailing list