implement fork() system call in unix using a c program
Hey i want to know what will be output of following code:-

main()
{
fork();
fork();
fork();
printf("hello world");
}

I think it should print hello worlf 4 times.
Plz help me.
implement fork() system call in unix using a c program
===

Hey i want to know what will be output of following code:-

main()
{
fork();
fork();
fork();
printf("hello world");
}

I think it should print hello worlf 4 times.
Plz help me.