Question: Note* this will be run on a Ubuntu server using c++ Write a program that will accept the names of 3 processes as command-line arguments.

Note* this will be run on a Ubuntu server using c++

Write a program that will accept the names of 3 processes as command-line arguments. Each of these processes will run for as many seconds as: (PID%10)*3+5 and terminate. After those 3 children terminated, the parent process will reschedule each child. When all children have been rescheduled 3 times, the parent will terminate. Each child must print out its process id every time it runs.

*These are two hints given for this project

*Note* this will be run on a Ubuntu server using c++ Writea program that will accept the names of 3 processes as command-line

include 3 using namespace std; int main(int arg, char *argv[]){ cout 1) { cout //cin and cout #include //wait() #include //Standard symbolic constants and type and function. POSIX OS API #include //exit() // using namespace std; int main() { int pid; int id; cout 3 using namespace std; int main(int arg, char *argv[]){ cout 1) { cout //cin and cout #include //wait() #include //Standard symbolic constants and type and function. POSIX OS API #include //exit() // using namespace std; int main() { int pid; int id; cout

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!