Question: Process creation questions: a. How many processes are created, including the parent process, when the following code is executed? int main() { int i, p;

Process creation questions: a. How many processes are created, including the parent process, when the following code is executed? int main() { int i, p; for(i=l; i0) { rintf("i = %d ", i); exit(O);//this one (*)} printf(("i = %d ", i);} exit(0); Process Model b. Draw the Process Model above for the processes created in part (a), including the parent process, in the process model, indicate the output generated by each process. c. If the first exit(O) statement in part (a) is removed, denoted with (*), how many processes would be created?. You don't need to draw the process model for this part;-)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
