[erlang-questions] Executing concurrently

Richard Andrews <>
Tue Mar 3 11:07:50 CET 2009


>   I have a function Fun(). If Fun is called simultaneously 
> by two processes, then it should fail for one process 
> while should succeed for other. I wrote such function. Now 
> I want to test it! How do I do that? How do I call a 
> function exactly at same time from two different processes?

You could make the function wait at receive.


      Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox



More information about the erlang-questions mailing list