Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Perl Threads and multi-core CPUsby Mark.Hedges (Initiate) |
on Jun 27, 2014 at 17:46 UTC ( [id://1091500]=note: print w/replies, xml ) | Need Help?? |
If they run on different CPU's, then why do you have to yield() to get other threads to run, on an SMP kernel? Update... I guess you don't. But in Coro I did have to call cede() in looping threads to let any other thread run. This works:
This also works:
This does not work:
In Section
Seekers of Perl Wisdom
|
|