main()
{
printf("algo ");
fork();
// do anything
}
in this program, it is printing "algo" two times.
main()
{
printf("algo \n");
fork();
// do anything
}
in this program, it is printing "algo" only once.
when a fork() is done, processes gets doubled and the execution starts from
the part of the program below the fork() command, am i correct ?
Thanks in advance.
--
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.