process sleeps

Yani Dzhurov <>
Tue Apr 25 14:34:49 CEST 2006


Hi guys,

 

I wondered whether timer:sleep(0) would cause a process to sleep or it will
just pass it ?

For instance if I have spawned process with fun();

 

fun()->

            bar(),

            baz(),

            timer:sleep(0),

            bar().

Would the process sleep after baz(), or not ?

 

10x,

 

yani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060425/f8a33703/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3326 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060425/f8a33703/attachment.bin>


More information about the erlang-questions mailing list