Purpose:Practice the drawing of a process tree Instruction: Draw a process tree for the execution of this program. Use a circle with a fork number inside to represent the node of a process. /* draw a...

1 answer below »

Purpose:Practice the drawing of a process tree


Instruction:


Draw a process tree for the execution of this program. Use a circle with a fork number inside to represent the node of a process.


/* draw a process tree for the execution of the following program */




main()

{


int c1, c2;


c1 = 0;


c2 = 0;


fork(); /* fork number 1 */


c1 = fork(); /* fork number 2 */


if (c1 > 0)


c2 = fork(); /* fork number 3 */


if (c2 >0)


c2= fork(); /* fork number 4 */

}

Things to submit:


  • The diagram of the process tree can be drawn with a MS Word file or a draw the process tree on a paper.

  • Submit the MS Word file or scan the the paper.

Answered Same DayApr 27, 2021

Answer To: Purpose:Practice the drawing of a process tree Instruction: Draw a process tree for the execution of...

Shivani answered on Apr 27 2021
137 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here