Question: 25. Consider the C program given below (on the next page). Assume that all fork) and wait) calls complete successfully Answer the following questions: -

25. Consider the C program given below (on the next page). Assume that all fork) and wait) calls complete successfully Answer the following questions: - How many processes are created during the execution of this program (including the "parent" process)? Draw the process hierarchy tree for this program. In which order did the processes in the hierarchy tree start and complete? Why? Explain your answer Which processes (among those in the hierarchy tree) will execute the line marked by Do Computation". Explain your answer PROGRAM FOR QUESTION 25 include include #include *include # include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
