Question: 5) How many processes are created when the following code is executed? #include #include int main(int argc, char const *argv[]) fork ); int pid -fork)

 5) How many processes are created when the following code is

5) How many processes are created when the following code is executed? #include #include int main(int argc, char const *argv[]) fork ); int pid -fork) if( pid > 0) fork ); Jelse fork ); printf ("%d ", getpid ( )); return 0

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!