[erlang-questions] example of race conditions ?
Saifi Khan
saifi@REDACTED
Tue Jul 31 17:59:50 CEST 2007
Hello:
The last section in Chap 9 (Errors in Concurrent prog) of
Programming Erlang book by Dr. Armstrong, says the following:
"When you combine the Erlang primitives spawn(), spawn_link(),
register() ..., you must think carefully about possible race
conditions.
Write your code in such a way that race conditions cannot happen"
To me, it seemed like an anti-climax of the whole 'lock free prog'
model. Please correct me, if I am wrong.
Can somebody share sample code that *has* race conditions ?
Appreciate a response from the experienced erlangers.
thanks
Saifi.
TWINCLING Society
freedom of innovation
http://www.twincling.org/
More information about the erlang-questions
mailing list