Thread: java question
View Single Post
Old Nov 9, 2004, 09:44 PM   #7 (permalink)
bug77
DriverHeaven Senior Member
 
Join Date: Oct 2003
Location: around
Posts: 792
bug77 is on a distinguished road

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.
bug77 is offline   Reply With Quote