.... he cannot gaurantee his multicore system will split the Perl threads between cores....in all likelyhood, it will be run in the same core, meaning both his threads will share a single execution pointer..... the pointer can't be in 2 places at the same time and the nice value given to the main thread, will limit his total speed
...if you have a code snippet that shows you how to force a Perl process to split it's execution across multiple cores, i would like to see it.... i could learn something
..... i don't know how many times this has been argued.... but Perl threads actually slow you down on a single cpu machine.... you may as well just have it all in the main script.... but on a multi-core system, on windows, it may work better..... but i'm just advising him, so he dosn't think Perl threads are some miracle speed boost thru concurrency
.... Perl Threads and multi-core CPUs discusses the pitfalls
In reply to Re^5: Standard way to convert timezone in multithreaded script
by zentara
in thread Standard way to convert timezone in multithreaded script
by whale2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |