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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started