Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: spawning multiple child processes

by jepri (Parson)
on Jun 21, 2002 at 05:17 UTC ( #176228=note: print w/ replies, xml ) Need Help??


in reply to spawning multiple child processes

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.

____________________
Jeremy
I didn't believe in evil until I dated it.


Comment on Re: spawning multiple child processes

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://176228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-06 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (81 votes), past polls