in reply to POE Examples
Depending on the amount of error checking you need, runN might already be enough to run multiple processes in parallel. Alternatively, have a look at Parallel::ForkManager.
If you are on Windows, using fork() gets a bit hairier. I would use threads together with system() to do the processing mostly in the children as spawned by system(). For managing / limiting the children, look at Re^3: Multi-threads newbie questions, which should be a good skeleton on how to use a set of worker threads working on a (larger) set of tasks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POE Examples
by SimonPratt (Friar) on Jul 14, 2014 at 14:08 UTC | |
by kulls (Hermit) on Jul 15, 2014 at 04:14 UTC |