Answer to Question #314545 in C++ for zxc

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()


}


1
Expert's answer
2022-03-20T14:42:04-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog