Description: This a classic problem of IPC, there is a barber shop, a barber chair and n barber chair waiting to be used. If there is no customer, the barber in the barber chair to sleep, to manage the customer, such as when the barber barber idle, otherwise as empty chairs are waiting, you leave no empty chairs, barbers and customers realize programming procedures to achieve process control requirements can not compete.
To Search:
File list (Check if you may need any files):
daima.cpp