Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 avoiding work at the Monastery: (11)
As of 2014-07-29 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (226 votes), past polls