[erlang-questions] example of race conditions ?
Tue Jul 31 17:59:50 CEST 2007
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
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.
freedom of innovation
More information about the erlang-questions