[Israel.pm] Parallel jobs
Yossi.Itzkovich at ecitele.com
Mon Jun 8 05:14:06 PDT 2009
I need them basically to run (more or less unrelated ) tasks in parallel. For example: Connect to dozens of stations and run there a long operation. I don't want to wait long time by doing them sequentially.
I prefer threads, but I wrote in the original mail why I can't.
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf Of Avishalom Shalit
Sent: Monday, June 08, 2009 3:01 PM
To: Perl in Israel
Subject: Re: [Israel.pm] Parallel jobs
2009/6/8 Avishalom Shalit <avishalom at gmail.com>
> i had used pearl threads,
> it isn't too complicated and most things i needed were threadsafe.
> however , they are not lightweight at all,
> they are masked forks, and like forks, you really want to spawn them as early as possible .
> what do you need them for ?
> 2009/6/8 Yossi Itzkovich <Yossi.Itzkovich at ecitele.com>
>> I would like to ask how you people work with parallel jobs (processes/threads) in Perl (>=5.8.4).
>> I know there are simple built in commands (open, fork etc.) but I am asking about higher order managers.
>> Threads might be good - but not enabled by default in Perl build -so I am limited (also not all modules are thread safe).
>> I have been using Parallel::Jobs for a while, and I read a little about Parallel::Forker, but I wanted to know if there are better alternatives out there.
>> Thanks for your help.
>> Perl mailing list
>> Perl at perl.org.il
> -- vish
Perl mailing list
Perl at perl.org.il
More information about the Perl