Question: Questions: 1) Write a simple program to create three processes using fork() commands. Use any three of the six system calls to show how each

Questions: 1) Write a simple program to create three processes using fork() commands. Use any three of the six system calls to show how each child process executes new sub-programs using execs minions. Show the output of each of the child process with different data samples. 2) Write a simple program in your Linux environment using C++ to identify PID, PPID and GID for the processes created in Question 1 and display the real and effective user ID. 3) Modify the program you wrote for Question 1 and include the alarm system call to kill one of the processes that you had created in 30 second. Thank You in Advance.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!