mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
Author:halw
Date:2011-02-24T03:11:23.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@786 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[[Property:title|Barbershop]]
|
||||
[[Property:weight|-11]]
|
||||
[[Property:uuid|5ffbb4a1-10a1-c7d8-d30a-971027bf61ae]]
|
||||
{{UnderConstruction}}
|
||||
|
||||
|
||||
{{Beta}}
|
||||
|
||||
|
||||
=Description=
|
||||
|
||||
The [http://en.wikipedia.org/wiki/Sleeping_barber_problem barbershop], sometimes called ''the sleeping barber'', models a barbershop with one barber, one barber's chair, and a waiting room with several chairs. The alternative name of the problem comes from the fact that if there is no one waiting for a haircut, the barber flops in his chair and falls asleep.
|
||||
|
||||
Also involved are a number of shaggy-haired customers. A customer entering the barbershop looks around and assesses the situation. If all the waiting room chairs are occupied, the customer leaves the shop to return again at a time when, hopefully, the queue will be shorter.
|
||||
|
||||
|
||||
=Highlights=
|
||||
|
||||
Reference in New Issue
Block a user