[Detroit-pm] Trying to stick a fork in it!

Scott Webster Wood treii28 at yahoo.com
Thu Mar 27 11:55:50 PDT 2008


OK, I've done some simple forking in the past but never needed to do it with any level of interprocess communication.  I get all the forking and I found some good examples of using stuff like Sockets to create a socket pair for talking back and forth with a single child.  Perhaps I've just been looking at it too long but I'm not quite able to fully sort out how to talk to more than one using those examples.

Basically I am interested in creating a handful of subprocesses to do some load testing, record their results and report back the result to the parent only when completed.  The parent can just sit around and wait for each/all of the children to finish up then manipulates the data accordingly.

Can anyone show me just a simple 2 child IPC using $pid = fork() style.  I don't care if it's using sockets, threading or pipes just so long as it works! lol

SW




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the Detroit-pm mailing list