[erlang-questions] help with smoker's problem
Jared Langson
trifod@REDACTED
Wed Aug 13 03:07:30 CEST 2008
I decided to solve the smoker's
problem<http://en.wikipedia.org/wiki/Cigarette_smokers_problem>to get
a feel for the language. Anyways the arbiter (Sally) never reaches
the end of her "loop". She stops "looping" after a seemingly random amount.
Sometimes once, but I've never seen her go above 300 repititions. Any ideas
as to what I am doing wrong?
thank you,
Jared Langson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080812/ae9a542c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smokers.erl
Type: application/octet-stream
Size: 5006 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080812/ae9a542c/attachment.obj>
More information about the erlang-questions
mailing list