http://qs321.pair.com?node_id=251745


in reply to Multi-threading in 5.8.0

yield will give up the CPU and cause the scheduler to pick a new current thread which might very well be the same thread that just called yield. You can't make assumptions about how threads will be scheduled. If you need to control which thread will execute when, you need to use locking mechanisms.

90% of every Perl application is already written.
dragonchild