int main() { fork(); if(fork()) fork(); fork(); }

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter20: Creating A Presentation
Section: Chapter Questions
Problem 5QY
icon
Related questions
Question

Computer Science

Find the total number of created processes with the parent and draw a tree diagram explaining it. 

int main()
{
fork();
if(fork())
fork();
fork();
}
Transcribed Image Text:int main() { fork(); if(fork()) fork(); fork(); }
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer