In the depths of Perl Wisdom I ask this great Monastery to endow me with the knowledge of complex process management. Now, there is proper forking(), which Ant seems to know a lot about, and there is what I am trying to do.

Can anyone elaborate on their experiences with forking() around with Perl in distributed cross-platform systems environment?

Say you're given 100 processes that you have to fork(), but the order in which they finish does not necessarily run 1..100, but more or less varies on a daily basis based on resources, number of machines to run scripts on, etc. Keep in mind that some of the processes may be dependent upon each other.

What is the best approach that my fellow brothers have taken to tackle this problem?

I am not looking for a solution, but more or less your adventure notes on the pitfalls of this topic.

My current solution is using a type of pooling mechanism to see what's done and what's not. Performing the management of processes in a sequential fashion (ie. system) will solve my problem, but I am trying to run things in a parallel mentality (ie. exec...but not exactly--->looking for alternative).

-P0w3rK!d


In reply to Caught Forking() around again by P0w3rK!d

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.