Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [cosc801@bayou Program_3]$ ./a.out list.txt
- The initial value of mutex is 1
- The initial value of admit is 0
- Female patron #1 arrives at club.
- Female patron #1 enters the club.
- Arriving Males: 0 Females: 1
- Value of admit is 3
- Female patron #2 arrives at club.
- Female patron #2 enters the club.
- Arriving Males: 0 Females: 2
- Value of admit is 6
- Male patron #3 arrives at club.
- Male patron #3 enters the club.
- Value of admit is 5
- Leaving Males: 1 Females: 2
- Female patron #1 leaves the club.
- Leaving Males: 1 Females: 1
- Value of admit is 2
- Male patron #4 arrives at club.
- Male patron #4 enters the club.
- Value of admit is 1
- Leaving Males: 2 Females: 1
- Male patron #5 arrives at club.
- Male patron #5 enters the club.
- Value of admit is 0
- Leaving Males: 3 Females: 1
- Male patron #6 arrives at club.
- Female patron #7 arrives at club.
- Female patron #7 enters the club.
- Arriving Males: 3 Females: 2
- Value of admit is 3
- Male patron #6 enters the club.
- Value of admit is 2
- Leaving Males: 4 Females: 2
- Female patron #7 leaves the club.
- Leaving Males: 4 Females: 1
- Value of admit is 1
- Male patron #5 leaves the club.
- Leaving Males: 3 Females: 1
- Value of admit is 2
- Male patron #3 leaves the club.
- Leaving Males: 2 Females: 1
- Value of admit is 3
- Male patron #6 leaves the club.
- Leaving Males: 1 Females: 1
- Value of admit is 4
- Female patron #2 leaves the club.
- Leaving Males: 1 Females: 0
- Value of admit is 3
- Male patron #4 leaves the club.
- Leaving Males: 0 Females: 0
- Value of admit is 4
- No one is in the club gettin' tipsy.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement