Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1023672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found