Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Multi-threading in 5.8.0

by petesmiley (Friar)
on Apr 21, 2003 at 15:58 UTC ( [id://252037] : note . print w/replies, xml ) Need Help??

in reply to Multi-threading in 5.8.0

Also to top off what everyone has written, yield will behave as dictated by the platform it runs on. In some cases it might now do anything for you. From some of the work I have done, it takes some time to start a fresh thread. Your first thread might be finished by the time the second thread has actually started in which case a yield would be moot.

If you are depending on the order in which your threads execute then you should carefully reconsider your design.