Question: Consider the following code segment pid_t pid; pid = fork (); if (pid == 0) { /*child process */ fork (); thread_create (. ..)
Consider the following code segment pid_t pid; pid = fork (); if (pid == 0) { /*child process */ fork (); thread_create (. ..) ; } else fork (); fork (); a. Show the execution graph. b. How many unique processes and threads are created?
Step by Step Solution
3.51 Rating (174 Votes )
There are 3 Steps involved in it
a The execution graph for the provided c... View full answer
Get step-by-step solutions from verified subject matter experts
