Question: Consider the following program: A. What is the output of the child process? B. What is the output of the parent process? 23 2 4
Consider the following program:

A. What is the output of the child process?
B. What is the output of the parent process?
23 2 4 5 6 7 8 9 int main() { } int a = 9; if (Fork () printf("p1: a=%d ", a--); printf("p2: a = %d ", a++); exit (0); == : 0)
Step by Step Solution
3.55 Rating (155 Votes )
There are 3 Steps involved in it
a b In our example program in Figure 815 the parent and c... View full answer
Get step-by-step solutions from verified subject matter experts
