Similar questions 2 more →
Processes, Threads & System Calls

Your answer
Answer & solution
Answer: B (no official key was published)
Step through it (3 cases)
1. Both parent and new child continue the loop after each successful fork. Hence each iteration doubles the number of processes still executing.
2. From one process, n iterations yield 2n total processes. Equivalently the iterations create 1+2+⋯+2n−1 children.
3. Subtract the one original process: 2n−1, B. Counting only n forks by the original parent misses descendants’ forks.