Question: a.draw a process tree. denote the process in the tree as p1, p2,.. b. for the message at lines A and B, how many times

a.draw a process tree. denote the process in the tree as p1, p2,..

b. for the message at lines A and B, how many times will each message be displayed, and which process output the message at line A and B, respectively?

how many unique threads are created and which process creats threads?

pid_t pid:

fork();

printf("line A"); /*A*/

pid = fork();

if (pid>0) {\printf("lineB"); /*B*/

fork();

threads_creats(...);

}

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!