Sleeping-Barber problem using MONITOR (and not semaphores).
Here is the problem, A barbershop consists of a waiting room with n chairs and a barber room with one barber chair. If there are no customers to be served, the barber goes to sleep. If a customer enters the barbershop and all chairs are occupied, then the customer leaves the shop. If the barber is busy but chairs are available, then the customer sits in one of the free chairs. If the barber is asleep, the customer wakes up the barber.
Code is ready just need to debug. Some segmentation fault.
3 freelancers are bidding on average ₹683 for this job
I see that you have task for Operating Systems course which I passed during my time on collage. I feel that best thing is you send me the program so I can try fast debuging it. It shouldn't be much of a problem.