Question: == int child = fork(); int c = 5; if (child 0) { C += 5; } else { child - fork(); C += 10;
== int child = fork(); int c = 5; if (child 0) { C += 5; } else { child - fork(); C += 10; if (child) { C += 10; } } 1. How many copies of the variable c are created by this program? What are their values? 2. Describe the hierarchical process tree that is created from running this program. You can assume that all processes have not yet exited
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
