sweetblood has asked for the wisdom of the Perl Monks concerning the following question:
I know my child is no longer running. When all of my children are complete I can then move on collecting my data and finishing the process. I coded up a test and it seems to work as I expect. However I did not use my actual app to test as it runs many hours, so the app I launched was a very trivial perl script. As I said this worked fine but before I code this into my actual process and use it to launch many instances of this non-trivial app that takes hours to run I thought I'd read IPC::Open2 and make sure I wouldn't have any trouble , but I became nervious and thought perhaps there is a better way. The process that I'm adding this to is one that currently takes all the data and passes it to a single instance of the app and therefore does not take advantage of the systems 4 cpus. I thought perhaps of using forking but I've never done that before and was unsure of how I would make it work./proc/$pid/cdw ne $curdir
Any suggestions would be greatly appreciated.
Sweetblood
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating multiple instances of a process
by Zaxo (Archbishop) on Jun 16, 2005 at 18:48 UTC | |
by sweetblood (Prior) on Jun 20, 2005 at 14:04 UTC | |
by Zaxo (Archbishop) on Jun 20, 2005 at 18:32 UTC | |
by sweetblood (Prior) on Jun 20, 2005 at 19:55 UTC |