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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS