Question: Urgent Please helpppp !!! 1)Write a C program in Linux that will create 2 child processes. One child will execute ps aux command and the

Urgent Please helpppp !!!

1)Write a C program in Linux that will create 2 child processes. One child will execute ps aux command and the other child will execute ls -al command. The child processes will run concurrently. Parent will wait for them until they terminate. You will use fork, exec, and wait system calls. There are various versions of the exec system call, such as execv, execl, execlp, etc. You can use the one that you want

2)Write a C program in Linux that will create 2 child processes. One child will execute ps aux command and the other child will execute ls -al command. The child processes will run concurrently. Parent will wait for them until they terminate. You will use fork, exec, and wait system calls. There are various versions of the exec system call, such as execv, execl, execlp, etc.

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!