¡@

Home 

c++ Programming Glossary: isfemale

bathroom synchronization and queue of threads

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

pthread_mutex_t women personEnterRestroom int id bool isFemale LEAVE THESE STATEMENTS pthread_mutex_lock coutMutex cout.. STATEMENTS pthread_mutex_lock coutMutex cout Enter id isFemale female male endl pthread_mutex_unlock coutMutex TODO Complete.. coutMutex TODO Complete this function if isFemale menInBath 0 womanInBath else if isFemale menInBath 0 wait coutMutex..