batching and threads

I am looking for a module that will enable easy batching with perl
threads, somewhat like Parallel::ForkManager for forking in batches.
Does anybody know of such a module?

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Unknown User [ Sa, 12 März 2011 15:27 ] [ ID #2056473 ]

Re: batching and threads

Hi "Unknown User",

On Saturday 12 Mar 2011 16:27:27 Unknown User wrote:
> I am looking for a module that will enable easy batching with perl
> threads, somewhat like Parallel::ForkManager for forking in batches.
> Does anybody know of such a module?

Please see this previous thread in this list:

http://www.nntp.perl.org/group/perl.beginners/2011/02/msg115 714.html

To sum up, while threads may often be a good idea in general (some people
happen to claim otherwise), Perl is not a very good language to use for them
and you should probably look at other languages such as C, C#/.NET, Erlang, or
possibly C/C++ (= C++ with many C primitives), Node.js, or Java or some JVM-
hosted languages such as Scala or Clojure. Alternatively, maybe try using
other forms of multi-tasking in Perl.

Note that threads suck pretty badly in all of the Perl 5/Python/Ruby/PHP/etc.
languages in part due to their design philosophy, so it's not limited to Perl.

If you do have to use threads in Perl read:

* http://www.perlmonks.org/index.pl?node_id=288022

* http://perldoc.perl.org/perlthrtut.html

Regards,

Shlomi Fish

--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Stop Using MSIE - http://www.shlomifish.org/no-ie/

If his programming is anything like his philosophising, he would find ten
imaginary bugs in the "Hello World" program.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Shlomi Fish [ So, 13 März 2011 08:23 ] [ ID #2056503 ]
Perl » gmane.comp.lang.perl.beginners » batching and threads

Vorheriges Thema: Detecting if input is provided
Nächstes Thema: How to kill child process running in background