Question: CIS 370 1. Process Creation in Linux: Run the code below in the CLI and answer the questions that follow mainca printfgetpid)) printfCeetpld)) printf getpld))
CIS 370 1. Process Creation in Linux: Run the code below in the CLI and answer the questions that follow mainca printfgetpid)) printfCeetpld)) printf getpld)) a. How many processes are created (including the program itself)? b. Add a third fork t) right after the ones in the program. How many processes are there? c. What is the relation between the number of consecutive fork calls and total number of processes created? Use shell command pstree to capture the relations between the different processes of parts and b. (hint: use the shell command ps to get your shell process pid; then use pstree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
