Description: There was a barber, a barber's chair and a chair n offered to the customer waiting for the haircut. If no customers, the barber would sleep in the barber chair; when the customer comes first, must arouse the barber for a haircut; if the barber is the barber again when customers come, if the empty chair sitting, he sat down to wait, if there is no empty seat, he left the barber shop.
Prepare a program for barbers and customers to describe their actions, requiring no competition, and trial P and V operations.
To Search:
File list (Check if you may need any files):
aaa.java