Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: spawning multiple child processes

by Abigail-II (Bishop)
on Jun 21, 2002 at 09:11 UTC ( #176258=note: print w/ replies, xml ) Need Help??


in reply to spawning multiple child processes

Well, exec replaces a single process with another, but fork copies the running process. So, fork combined with exec is the way (at least under Unix) to spawn off new tasks. If you are doing a system, behind the screens, Perl will do a fork and an exec. It will just wait for the child to finish before continuing. Using a system with an ampersand tacked to the end of the command is an option, but that means Perl will first invoke a shell (using fork and exec) which will spawn off your command (using another fork and exec).

Abigail


Comment on Re: spawning multiple child processes
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (23)
As of 2014-07-14 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (260 votes), past polls