in reply to Re^2: Standard way to convert timezone in multithreaded script
in thread Standard way to convert timezone in multithreaded script
perl -Mthreads -e'$n=3;for (1..$n){$t[$_]=threads->create(sub{my $r; while(1){$r++}});}; sleep 10;threads->exit()'
FWIW, I can attest that setting n=2 pegs both cores on my amd 3800+ running Arch Linux. However, n=1 (recommended setting) only pegs one core.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Standard way to convert timezone in multithreaded script
by tirwhan (Abbot) on Nov 24, 2009 at 18:23 UTC |