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
Get step-by-step solutions from verified subject matter experts
