in reply to Re: •Re: Run N similar tasks in parallel
in thread Run N similar tasks in parallel
By checking the possible failure of fork, I never "think" I'm working on five kids when only two have really started.
By checking the value of waitpid for a possible -1 return, I never "think" I have kids left when I really don't. The -1 force-resets the hash.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In Section
Snippets Section