2009/4/19 Dan Linder <span dir="ltr"><<a href="mailto:dan@linder.org">dan@linder.org</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What I'd like to do is have the parent process fork a number of children processes and wait for one to complete, then start another child to work on the next remaining subroutine.</blockquote><div><br>So you'd like to have x child processes running at any given time? Will all the child processes be doing the same sort of work?<br>
<br>I would think "wait" (rather than "waitpid") should fit the bill, as "wait" should return the PID of whatever child exited most recently, right?<br><br></div></div>-- <br>Dave Burchell<br>