Question: Using the pseudo - code below answer the following questions: ( Assume all parent processes wait for their children before ending ) . p 1

Using the pseudo-code below answer the following questions: (Assume all parent processes wait for their children
before ending).
p1= fork()
p2=fork()
if(p1>0)
{
exec(....)
}
(enter number only)
What were the maximum processes (before exec..) that have p1>0?
What were the maximum processes (before exec..) that have a p3= to 0?
How many processes will exec?
Using the pseudo - code below answer the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!