Question: Number three please b) Write a C/C++-program that creates a fan of 10 processes. That is, process 1 is the parent of prcocesses 2, 3,
Number three please b) Write a C/C++-program that creates a fan of 10 processes. That is, process 1 is the parent of prcocesses 2, 3, 4, 5, 6 and so on. a) Write a simple program named test1.cpp, which contains an infinite while loop. Compile the program to an executable named test1 and run it in the background. b) Write a shell script that searches for whether the process test1 is in the system. If it is not, your script displays the message 'Process test1 not running!'. If it is running, your script kills the process, and displays the message 'Process test1 killed!'. Turn in your programs along with your outputs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
