What does the following code? while (numforks<maxf) { pid_tpid = fork(); if (pid == 0) { //do something exit(1); } else { numforks++; } while (numforks>= maxf) { wait(NULL); numforks--; } }
Correct Answer: Creates Maximum maxf child processes and wait until they are finished
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C++ MCQ Questions