Write a c program that forks a number of children specified


Problem

Write a C program that forks a number of children specified as the first parameter on the command line. Each forked child should execute a program that is specified as the second parameter on the command line. In fact, the executed program will be the one that you created in the first question! If no parameters are specified, display an appropriate usage. Each forked child should display it's PID and the output of its execution of the program on a single line. Have each child provide a random number of arguments to the executable (at least one and no more than 10). Each argument must be a random integer from 0 through 99.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program that forks a number of children specified
Reference No:- TGS03354355

Expected delivery within 24 Hours