in reply to Re^4: perl -Dusethreads compilation
in thread perl -Dusethreads compilation
So you don't really want a semaphore (people rarely need that), you just want a Thread::Queue for example, to distribute the jobs among your worker threads. Alternatively, if threads are unavailable to you, see Parallel::ForkManager, as your child/worker threads don't really need to communicate with the master thread.
Also, you might think about whether multiple threads will really improve the runtime of a process that is basically limited by the available bandwith and not by the available computation power.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: perl -Dusethreads compilation
by almut (Canon) on Apr 05, 2010 at 15:52 UTC | |
by Corion (Patriarch) on Apr 05, 2010 at 16:01 UTC | |
by almut (Canon) on Apr 05, 2010 at 16:09 UTC |