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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Don't wait: waitpid. Why?
by bronto (Priest) on Feb 26, 2003 at 13:00 UTC | |
by merlyn (Sage) on Feb 26, 2003 at 14:13 UTC | |
by Abigail-II (Bishop) on Feb 26, 2003 at 14:42 UTC | |
by merlyn (Sage) on Feb 26, 2003 at 14:47 UTC | |
by Abigail-II (Bishop) on Feb 26, 2003 at 14:54 UTC |
In Section
Snippets Section