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
Get step-by-step solutions from verified subject matter experts
