Question: How many process will be created by the following source program ? ( 1 mark ) #include #include #include using namespace std; pid _ t

How many process will be created by the following source program ?(1 mark) #include #include #include using namespace std; pid_t pid; int main(){ pid_t pid = fork(); // fork #1 pid = fork(); // fork #2 pid = fork(); // fork #3 if (pid ==0){ fork(); // fork #4} fork(); // fork #5}|3

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 Databases Questions!