*http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html* * * *hope this is helpful *regards - Sumit Kumar Pathak (Sumit/ Pathak/ SKP ...) *Smile is only good contagious thing.* *Spread it*!!!!!
On Sun, Oct 2, 2011 at 1:20 PM, rahul sharma <[email protected]>wrote: > plz tell me hw does fork wokrs???child contain full code ore the > statements after fork????hw pid is 0 with pi=fork(); > i cant get these..plz tell asap...thnx > > On Oct 2, 12:49 pm, rahul sharma <[email protected]> wrote: > > main() > > { > > int pid; > > pid=fork(); > > if(pid==0) > > { > > print child; > > print("...",getpid());} > > > > else > > { > > print print; > > print("...",getpid()); > > > > > > > > > > > > > > > > } > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
