Question: These questions are Operating System in Linux Exercise 2: Fork and Process Tree Referring to Figure 2 below, write a program that will create five
"These questions are Operating System in Linux"

Exercise 2: Fork and Process Tree Referring to Figure 2 below, write a program that will create five processes called original, clonel, clone2 clones and clone4 original clone! clone3 clone4 clone2 Figure 2: Tree of five processes Each process displays message that illustrate the parent - child/children relationship between two processes. a) Process original will print an output as follows: "I am the original process, my process identifier is id_of_original, my clones are: process clonel : id_of_clonel process clone3 : id_of_clone3" b) Process clonel will print an output as follow: "I am the obsolete version, recent version is id_of_clone?" c) Process clone4 will print the following message: "I am the most sophisticated clone, process identifier of my parent is id_of_clone3" 1. Take a screenshot for your Terminal window as you compile and run the above program 2. Upload the screenshot image below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
