Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
laziness, impatience, and hubris
 
PerlMonks  

Re: How to run the child process parellel to the parent process with fork

by nagalenoj (Friar)
on Mar 15, 2013 at 11:37 UTC ( #1023672=note: print w/ replies, xml ) Need Help??


in reply to How to run the child process parellel to the parent process with fork

Hi,

When a process is forked, new process(child) and the existing process(parent) both run simultaneously. It is not like one after another. It is not like, what you said("but from the code shown parent is executed first and then child.")

Can you tell what is the output and your expected output?


Comment on Re: How to run the child process parellel to the parent process with fork

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2014-04-17 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (449 votes), past polls