Just another Perl shrine | |
PerlMonks |
Re: spawning multiple child processesby jepri (Parson) |
on Jun 21, 2002 at 05:17 UTC ( [id://176228]=note: print w/replies, xml ) | Need Help?? |
You are looking for the fork command. Fork creates two running processes, one the original and one the clone. A process may fork itself as often as it wants. This is how you do your 150 child processes. Several people have built modules around fork, such as parallel::forkmanager or parallel::taskmanager can't remember names. In your case, however, I think you just want to fork 150 times. Read the man page very closely, it takes a bit to wrap your mind around it. ____________________
In Section
Seekers of Perl Wisdom
|
|