in reply to Re^2: Is fork() my answer to using dual-cpu?
in thread Is fork() my answer to using dual-cpu?
Actually, you probably want:
$pm = Parallel::ForkManager->new(3);
unless your script has absolutely no disk I/O. Otherwise you will find that you have a processor sitting idle waiting on disk I/O. You might see an improvement with numbers greater than # CPUs + 1, but only in systems with highly parallelized I/O chains.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is fork() my answer to using dual-cpu?
by radiantmatrix (Parson) on Oct 26, 2005 at 18:58 UTC |