Question: Draw the process hierarchy tree for this program: #include #include #include int count = 0; main() pid_t x; x = fork(); count = count +
Draw the process hierarchy tree for this program:
#include
x = fork(); count = count + 5; printf(A: count is %d ,count); /* Line L */ if (x == 0) { count = count + 10; fork(); printf(B: count is %d ,count); /* Line M */ } else { count = count + 15; printf(C: count is %d ,count); /* Line N */ } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
