The “Sleeping Barber” problem is another classic concurrency example. As with our previous discussion of “Dining Philosophers”, actors allow a novel approaching to solving this problem. We will adjust a few of the details to enhance the metaphor and have a bit of fun with it. Our metaphorical barber provides yak shaving services. Yaks arrive […]
Archive for April 23rd, 2012
23
Apr
2012
“Sleeping Barber” in Humus
Tags: actor, asynchronous, blocking, concurrency, consistency, deadlock, Humus, protocol, starvation, state-machine, synchronization