in reply to Thread Advice

How often are you planning on upgrading? If this is a one-time thing, don't get yourself buiried in the complexities of threading. If this is something that might happen once or twice a month, and if it takes longer than a single night to upgrade everything, then you can probably get a speed boost with parrellizaing. Alternatively, you can make one program that can take a portion of the list of hosts and run it multiple times, each run with a different section of the list.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Thread Advice
by crackotter (Beadle) on Jun 12, 2003 at 17:53 UTC
    I am planning on running the upgrade once a week. In mutiple locations. I have not used parrellizaing before. How do I do it? :)
    My current script uses thread pool, but I notice a occasional problem, thats why I was asking about the recommend style for this type of project.

      You're already doing parrellization. Any program that has portions running together is using parrellization. Though it isn't true "parrellisim" unless you're on a multi-processor machine, a cluster, or one of those new-fangled hyperthreading processors, but that's a pesky detail that I'm ignoring for the moment.

      Recommended style here is "whatever works for you" :)

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated