In the code below, assume that (i) all fork and exe.cvp statements execute successfully, (ii) The program
Fantastic news! We've Found the answer you've been seeking!
Question:
In the code below, assume that (i) all fork and exe.cvp statements execute successfully, (ii) The program arguments of exe.cvp do not spawn more processes or print out more characters, and (iii) all pid variables (pid,?.,pid6) are initialized to 0.
(a) How many processes will be created by the execution of this code? Show in a ?process creation diagram? (like we did I the class) the order in which each process is created, and the values of pid 1 to pid6 for each process.
(b) What will be the output of each process?
Related Book For
Operating Systems Internals and Design Principles
ISBN: 978-0133805918
8th edition
Authors: William Stallings
Posted Date: