Question #314545

How many number of processes will be created in the following


program? Prove your answer by making a replica code that will count no


of processes created.



int main()


{


fork()


fork()


fork()


fork()


}


Expert's answer

int main () 
{
pid_t pid;pid = fork();
forkpid = fork();
printf("Fork-Test\n");
return EXIT_SUCCESS;
}
LATEST TUTORIALS
APPROVED BY CLIENTS