0 votes 0 votes Including the initial parent process, how many processes are created by the program shown below- #include <stdio.h> #include <unistd.h> int main() { int i; for (i = 0; i < 4; i++) fork(); return 0; } Operating System galvin operating-system process programming + – akash.dinkar12 asked Mar 19, 2019 akash.dinkar12 1.9k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Total number of child process are created = $2^n$-1. Here for loop executed 4 times( n=4) . Total number of child process are created = $2^4$ -1 =16-1 = 15. abhishekmehta4u answered Mar 19, 2019 • edited Mar 19, 2019 by akash.dinkar12 abhishekmehta4u comment Share Follow See all 0 reply Please log in or register to add a comment.