Part a) (7 points) Including the initial parent process, how many…

Question Answered step-by-step Part a) (7 points) Including the initial parent process, how many… Image transcription textint main( ) { int pid1=fork( ); int pid2=fork( ); if (pid1 > 0) fork( ); else if (pid2 > 0) {fork( ); fork( );} else {fork(); fork( ); fork( ); } int pipefd1[2], pipefd2[2]; pipe(pipefd1); pipe(pipefd2); pid = fork(); if (pid==0) { int x = 16; write(pipefd1 [1], x, sizeof(x) ); X = x + 1; write (pipefd1 [1], x, sizeof(x) ); X = x + 1; write(pipefd1[1], x, size… Show more… Show morePart a) (7 points) Including the initial parent process, how many processes are created in total?Part b) (8 points) Explain what the output will be at Line A. Physics Science Electronics ECSE 2660 Share QuestionEmailCopy link Comments (0)