0 votes 0 votes A process executes the following segments of code : for (i = 1; i ≤ 4; i++) fork ( ); The number of new processes created is __________. Your Answer: 8 Correct Answer: 15 Status: incorrect vishwa ratna asked Jan 18, 2017 vishwa ratna 298 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes Total child process is given as under: 2^n-1(Parent) 2^4-1=15 Answer is 15. In general, total Child Processes = 2n-1(Parent) = 2n - 1. For more information refer the link below: https://gateoverflow.in/3707/gate2004-it-64 I hope the explanation helps you. :) Devshree Dubey answered Jan 18, 2017 • selected Jan 18, 2017 by vishwa ratna Devshree Dubey comment Share Follow See all 0 reply Please log in or register to add a comment.