Question: A. Only duplicate thread being called B. Duplicate all threads For both A and B draw the process tree (use P, SP, SSP, to indicate

A. Only duplicate thread being called

B. Duplicate all threads

For both A and B draw the process tree (use P, SP, SSP, to indicate the main process, sub-process, sub-sub-process, ; use P(n) to indicate a process with n extra threads.);

For each case, how many new processes have been created? and how many extra threads have been created?

pid_t pid;

pid = fork();

if (pid == 0) { /* child process */

fork();

thread_create( . . .);

}

else {

thread_create( . . .); }

fork();

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!