Questions about Multiple Threads and Sleep
I have an assignment, not asking you to do it for me just a question, where I have to schedule people using a restroom and each person is a thread. I need to have each thread "use" the restroom for x seconds and I am tring to use the wait function to put the thread to sleep. The problem is that it appears that sometimes after a sleep all threads stop responding and the program appears to deadlock and at other times it just stops for 30 - 90 seconds and then everything just piles in like it was still working but not outputting. Ideas?