In this Co-Ed resident hall there are 5 Men and 5 Women. The maximum time the men are alotted in the bathroom is 8. The maximum time for women in the bathroom is 8. The maximum time the men wander in the resident hall is 4. The maximum time the women wander in the resident hall is 4. The run time is 20. age=0, Woman 4 is studying for 741 ms age=0, Woman 1 is studying for 1376 ms age=1, Woman 3 is studying for 3055 ms age=1, Woman 2 is studying for 2903 ms age=1, Woman 0 is studying for 3350 ms age=2, Man 0 is studying for 1844 ms age=2, Man 1 is studying for 341 ms age=2, Man 2 is studying for 2084 ms age=2, Man 3 is studying for 707 ms All threads started age=2, Man 4 is studying for 3301 ms age=346, Man 1 has to use the bathroom age=346 Man 1 has begun using the bathroom, Men=1 age=346, Man 1 is IN the BATHROOM for 448 ms age=712, Man 3 has to use the bathroom age=712 Man 3 has begun using the bathroom, Men=2 age=712, Man 3 is IN the BATHROOM for 4247 ms age=743, Woman 4 has to use the bathroom age=744 Woman 4 waiting to use the bathroom, WaitingWomen=1 age=796 Man 1 finished using the bathroom, Men=1 age=797, Man 1 is finished with bathroom age=797, Man 1 is studying for 1287 ms age=1378, Woman 1 has to use the bathroom age=1378 Woman 1 waiting to use the bathroom, WaitingWomen=2 age=1847, Man 0 has to use the bathroom age=1847 Man 0 waiting to use the bathroom, WaitingMen=1 age=2085, Man 1 has to use the bathroom age=2085 Man 1 waiting to use the bathroom, WaitingMen=2 age=2088, Man 2 has to use the bathroom age=2088 Man 2 waiting to use the bathroom, WaitingMen=3 age=2905, Woman 2 has to use the bathroom age=2905 Woman 2 waiting to use the bathroom, WaitingWomen=3 age=3056, Woman 3 has to use the bathroom age=3057 Woman 3 waiting to use the bathroom, WaitingWomen=4 age=3304, Man 4 has to use the bathroom age=3304 Man 4 waiting to use the bathroom, WaitingMen=4 age=3352, Woman 0 has to use the bathroom age=3352 Woman 0 waiting to use the bathroom, WaitingWomen=5 age=4960 Man 3 finished using the bathroom, Men=0 age=4960 cascading in 5 Women age=4960, Man 3 is finished with bathroom age=4960 Woman 4 has begun using the bathroom, Women=1 age=4960, Man 3 is studying for 2606 ms age=4960 Woman 1 has begun using the bathroom, Women=2 age=4960, Woman 4 is IN the BATHROOM for 1539 ms age=4960 Woman 2 has begun using the bathroom, Women=3 age=4960, Woman 1 is IN the BATHROOM for 2065 ms age=4960 Woman 3 has begun using the bathroom, Women=4 age=4960, Woman 2 is IN the BATHROOM for 1528 ms age=4961, Woman 3 is IN the BATHROOM for 4263 ms age=4961 Woman 0 has begun using the bathroom, Women=5 age=4961, Woman 0 is IN the BATHROOM for 322 ms age=5284 Woman 0 finished using the bathroom, Women=4 age=5285, Woman 0 is finished with bathroom age=5285, Woman 0 is studying for 2625 ms age=6490 Woman 2 finished using the bathroom, Women=3 age=6490, Woman 2 is finished with bathroom age=6490, Woman 2 is studying for 2785 ms age=6501 Woman 4 finished using the bathroom, Women=2 age=6501, Woman 4 is finished with bathroom age=6501, Woman 4 is studying for 2959 ms age=7028 Woman 1 finished using the bathroom, Women=1 age=7028, Woman 1 is finished with bathroom age=7028, Woman 1 is studying for 1501 ms age=7568, Man 3 has to use the bathroom age=7568 Man 3 waiting to use the bathroom, WaitingMen=5 age=7911, Woman 0 has to use the bathroom age=7911 Woman 0 waiting to use the bathroom, WaitingWomen=1 age=8531, Woman 1 has to use the bathroom age=8531 Woman 1 waiting to use the bathroom, WaitingWomen=2 age=9225 Woman 3 finished using the bathroom, Women=0 age=9225 cascading in 5 Men age=9225, Woman 3 is finished with bathroom age=9225 Man 0 has begun using the bathroom, Men=1 age=9225, Woman 3 is studying for 3243 ms age=9225 Man 1 has begun using the bathroom, Men=2 age=9225, Man 0 is IN the BATHROOM for 6683 ms age=9225 Man 2 has begun using the bathroom, Men=3 age=9225, Man 1 is IN the BATHROOM for 3239 ms age=9225, Man 2 is IN the BATHROOM for 707 ms age=9225 Man 4 has begun using the bathroom, Men=4 age=9225, Man 4 is IN the BATHROOM for 384 ms age=9225 Man 3 has begun using the bathroom, Men=5 age=9226, Man 3 is IN the BATHROOM for 302 ms age=9276, Woman 2 has to use the bathroom age=9277 Woman 2 waiting to use the bathroom, WaitingWomen=3 age=9461, Woman 4 has to use the bathroom age=9461 Woman 4 waiting to use the bathroom, WaitingWomen=4 age=9529 Man 3 finished using the bathroom, Men=4 age=9529, Man 3 is finished with bathroom age=9530, Man 3 is studying for 2904 ms age=9611 Man 4 finished using the bathroom, Men=3 age=9611, Man 4 is finished with bathroom age=9612, Man 4 is studying for 1170 ms age=9934 Man 2 finished using the bathroom, Men=2 age=9934, Man 2 is finished with bathroom age=9934, Man 2 is studying for 344 ms age=10281, Man 2 has to use the bathroom age=10281 Man 2 waiting to use the bathroom, WaitingMen=1 age=10784, Man 4 has to use the bathroom age=10784 Man 4 waiting to use the bathroom, WaitingMen=2 age=12435, Man 3 has to use the bathroom age=12435 Man 3 waiting to use the bathroom, WaitingMen=3 age=12466 Man 1 finished using the bathroom, Men=1 age=12466, Man 1 is finished with bathroom age=12466, Man 1 is studying for 154 ms age=12469, Woman 3 has to use the bathroom age=12469 Woman 3 waiting to use the bathroom, WaitingWomen=5 age=12622, Man 1 has to use the bathroom age=12622 Man 1 waiting to use the bathroom, WaitingMen=4 age=15910 Man 0 finished using the bathroom, Men=0 age=15910 cascading in 5 Women age=15910, Man 0 is finished with bathroom age=15910 Woman 0 has begun using the bathroom, Women=1 age=15910, Man 0 is studying for 1113 ms age=15910 Woman 1 has begun using the bathroom, Women=2 age=15910, Woman 0 is IN the BATHROOM for 3430 ms age=15910 Woman 2 has begun using the bathroom, Women=3 age=15910, Woman 1 is IN the BATHROOM for 285 ms age=15910, Woman 2 is IN the BATHROOM for 3382 ms age=15910 Woman 4 has begun using the bathroom, Women=4 age=15911, Woman 4 is IN the BATHROOM for 2284 ms age=15911 Woman 3 has begun using the bathroom, Women=5 age=15911, Woman 3 is IN the BATHROOM for 4071 ms age=16197 Woman 1 finished using the bathroom, Women=4 age=16198, Woman 1 is finished with bathroom age=16198, Woman 1 is studying for 2346 ms age=17025, Man 0 has to use the bathroom age=17025 Man 0 waiting to use the bathroom, WaitingMen=5 age=18197 Woman 4 finished using the bathroom, Women=3 age=18197, Woman 4 is finished with bathroom age=18197, Woman 4 is studying for 2892 ms age=18545, Woman 1 has to use the bathroom age=18545 Woman 1 waiting to use the bathroom, WaitingWomen=1 age=19294 Woman 2 finished using the bathroom, Women=2 age=19294, Woman 2 is finished with bathroom age=19294, Woman 2 is studying for 909 ms age=19342 Woman 0 finished using the bathroom, Women=1 age=19342, Woman 0 is finished with bathroom age=19342, Woman 0 is studying for 22 ms age=19366, Woman 0 has to use the bathroom age=19366 Woman 0 waiting to use the bathroom, WaitingWomen=2 age=19983 Woman 3 finished using the bathroom, Women=0 age=19983 cascading in 5 Men age=19983, Woman 3 is finished with bathroom age=19983 Man 2 has begun using the bathroom, Men=1 age=19983, Woman 3 is studying for 1982 ms age=19983 Man 4 has begun using the bathroom, Men=2 age=19983, Man 4 is IN the BATHROOM for 3816 ms age=19983, Man 2 is IN the BATHROOM for 1829 ms age=19983 Man 3 has begun using the bathroom, Men=3 age=19983 Man 1 has begun using the bathroom, Men=4 age=19983, Man 3 is IN the BATHROOM for 2625 ms age=19983 Man 0 has begun using the bathroom, Men=5 age=19983, Man 1 is IN the BATHROOM for 4705 ms age=19984, Man 0 is IN the BATHROOM for 3776 ms age()=20004, time to stop the threads and exit