Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started