Question: Exercise 4.10) Consider the following code segment: begin{tabular}{|l|} hline pid_t pid; pid = fork(); if (pid ==0){/ child process / fork();

Exercise 4.10) Consider the following code segment: \begin{tabular}{|l|} \hline pid_t pid; \\ pid = fork(); \\ if (pid ==0){/ child process / \\ fork(); \\ thread_create(...); \\ \}ork(); \\ fork \\ \hline \end{tabular} After running this program, answer the following questions. a. How many processes do we have? b. How many threads do we have (including main threads)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
