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()
}
int main ()
{
pid_t pid;pid = fork();
forkpid = fork();
printf("Fork-Test\n");
return EXIT_SUCCESS;
}
Comments
Leave a comment