Question: 1 . Your first task is to write a parent program which will fork off two new processes, where the new child processes will execute
Your first task is to write a parent program which will fork off two new processes, where the new child processes will execute a different program. Part of this will guide you to building the parent program. Part of this will guide you through building the child program code. All three processes will sleep at least ten seconds; then print out their own process id the process id of their parent, and their user id While the processes are running, you will run ps to gather the information about all of your processes, then you will use that information to verify what happened and construct a process call tree.
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
