Don't ask to ask, just ask | |
PerlMonks |
Re^4: Standard way to convert timezone in multithreaded scriptby tirwhan (Abbot) |
on Nov 24, 2009 at 18:23 UTC ( [id://809162]=note: print w/replies, xml ) | Need Help?? |
However, n=1 (recommended setting) only pegs one core. Yes, of course. A single thread will only execute on one core. Which core that is may change (it's up to the OS), but it won't run on more than one core simultaneously. Multiple threads will. (I guess you already know this, just saying it explicitly in case someone reads all of this and is under the impression that simply saying "use threads;" will make a program run concurrently on several CPUs. That would be magic, not concurrency :-) All dogma is stupid.
In Section
Seekers of Perl Wisdom
|
|