good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Child Process as a Functionby pgduke65 (Acolyte) |
on Sep 01, 2014 at 01:36 UTC ( [id://1099138]=perlquestion: print w/replies, xml ) | Need Help?? |
pgduke65 has asked for the wisdom of the Perl Monks concerning the following question: Monks, I am looking for guidance regarding a solution to a requirement that I have to run through data and process it in chunks. X number at a time. In korn shell, I would release a parenthetical group to the background and have the main program wait for the child processes to complete. My initial research has led me to fork/exec. However, all the examples I have seen use a script for the child process. Is it possible to have a function reference execute as the child thread? I am also looking for a solution that will run on Windows and Unix. I am assuming that this is possible in PERL? Thank you.
Back to
Seekers of Perl Wisdom
|
|