Quote:
|
Originally Posted by lime
the landingQ is just an UnboundedQueue....it's fine...i just need help on how to check if the runway is free, if so and the landingQ isn't empty, then allow a plane to land, so the runway is not free for minToLand minutes....then go from there... i'm having trouble with that part
|
Have a boolean value tell if the runway is free. Whenever it is in use for a period of time, set the value to indicate that and have a thread sleep for that amount of time and reset the value afterwards.