[erlang-questions] Executing concurrently

Bengt Kleberg bengt.kleberg@REDACTED
Tue Mar 3 07:55:09 CET 2009


If you are willing to make a small change to Fun(), for the purpose of
testing, you could add a call to timer:sleep/1 inside it. This to make
sure that it takes sufficiently long time to execute.


On Tue, 2009-03-03 at 11:03 +0530, Vikrant wrote:
> Hi,
>    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?
> Thanks in advance,
> Regards,
> Vikrant
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list