You speak truthfully regarding $pm->start(), as I am beginning to understand it. As I am currently understanding it (which may still be in error), it appears that routine basically enqueues them by looping thru, performing a non-blocking wait for a child process to terminate while there are more than the maximum number of processes waiting, then proceeds to where it can launch the next one if that maximum number is non-zero.

I want those processes still operating when the alarm occurs to continue naturally if it was only because of the timeout. When that is the cause of the alarm, I reset the maximum number of processes to 0 because a that point I didn't want additional processes to launch, only my current ones to complete.

I haven't tried that test under Windows/cygwin yet, but plan to try, although if the code works and my logic is sound, it will most likely run on a *nix box of some kind. My appreciation also for the responses, because they are being quite helpful.


In reply to Re^6: Graceful shutdowns and Parallel::ForkManager by atcroft
in thread Graceful shutdowns and Parallel::ForkManager by atcroft

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.