On Fri, May 14, 2010 at 3:07 PM, Dr.Ruud <rvtol+use...@isolution.nl<rvtol%2buse...@isolution.nl> > wrote:
> raphael() wrote: > > I want to do work on all elements of an array simultaneously. >> > > What kind of data/reality does your array represent? > > > > I tried Parallel::ForkManager. It works well when you don't need to update >> global value like downloading >> multiple files at the same time. I want something like above that forks >> while updating global values. >> Are threads/fork what I am looking for? >> > > If you have a list of file names that need to be processed, and that can be > handled independently, then always go for fork-join, don't even consider > threading. > > The parent will detect when the child is finished, and can look in a > predefined location (I normally use a database) for the result. > > If your audience is not a bunch of twitchers, then stay away from > threading. > > -- > Ruud > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > Hi, thanks for replying. No twitching audience :) This is just a rough project of mine trying to get a feel of parallelism. Your advice on using a database as a place to use shared info is more useful after I read http://www.perlmonks.org/index.pl?node_id=288022 *thanks* let see what I can gain from this.