Question: For part a , I think the answer is 5 . At leat from my understanding. If that is correct ( and if its not
For part a I think the answer is At leat from my understanding. If that is correct and if its not could you show the tree that explains how this we get this answer, I kind of understand the fork part im just a little confused on some parts of it As for part b I really have no idea what the answer could be or how I would find it Any help is appreciated.
pidt pid;
one thread in the initial process pid fork;
if pid
child process
fork;
threadcreate;
fork; called by all threads
A fork call by a process or thread creates a child process. Since each newly created process does not call exec after forking, a child process will duplicate all parents threads. Assume initially the parent process is singlethreaded. Please show how your answers are derived, not just numbers. Please answer the following questions:
a How many new processes are created, not including the initial parent process? b How many new threads are created not including the original thread in the initial parent process?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
