¡@

Home 

c++ Programming Glossary: bathroom

bathroom synchronization and queue of threads

http://stackoverflow.com/questions/10474566/bathroom-synchronization-and-queue-of-threads

synchronization and queue of threads For homework we have been.. and queue of threads For homework we have been given the bathroom synchronization problem. I have been struggling trying to figure.. function. When a person leaves if no one is left in the bathroom the other queue starts. Here is my code I know I am far off..

Mutual exclusion and semaphores

http://stackoverflow.com/questions/3850491/mutual-exclusion-and-semaphores

am writing a program for homework that simulates a unisex bathroom. Only 4 people are allowed at a time and men and woman cannot.. woman cannot enter if the other sex is already using the bathroom. My problem is with allowing a max of 4 people in the bathroom... My problem is with allowing a max of 4 people in the bathroom. As you can see from the output only 1 person is getting into..