This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: (when all the chairs are full) he will leave. April 15, 2009 Operating Systems - Mehreen Alam Barber Shop Hints Consider the following: Customer threads should invoke a function named getHairCut. If a customer thread arrives when the shop is full, it can invoke balk, which exits. Barber threads should invoke cutHair. When the barber invokes cutHair there should be exactly one thread invoking getHairCut concurrently....
View Full Document
- Spring '07
- English-language films, Chair, Sitting, barber, Barber Problem, Mehreen Alam