The stupid question is the question not asked | |
PerlMonks |
Re: Multi-threading in 5.8.0by petesmiley (Friar) |
on Apr 21, 2003 at 15:58 UTC ( [id://252037]=note: print w/replies, xml ) | Need Help?? |
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. smiles
In Section
Seekers of Perl Wisdom
|
|