http://www.perlmonks.org?node_id=1023672


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?