in reply to Multithreading, how to?
From the docs:
If the machine you're running on is multicore this ought to leverage the extra iron, I'd use the '1' keystroke of the top command to see all cores and see if they're being utilized. This assumes a kind of parallelism where there are no dependencies between data chunks, like Fold@Home or SETI@Home.prun( foo => sub { print "$$ foo\n" }, bar1 => [ \&my_bar_func, @args ], bar2 => [ \&my_bar_func, @other_args ], ) or die( Parallel::Simple::errplus() );
HTH, SSF
|
---|