Question: Code strictly in C (not C++) You will write a program that uses multiple processes to compute the sum of a set of (small) positive
Code strictly in C (not C++) 

You will write a program that uses multiple processes to compute the sum of a set of (small) positive integers. I). A set of "slaves" processes: Each slave process gets two small integers from its argv, computes its sum and returns the result using the exit system call. So, a slave process is created for every sum II) A "master" process: This process is responsible for c the computation. Note that all the computation is done by the "slave" processes. All the numbers are provided in the command line argv. The master process also set a timer at the start of computation to 3 seconds. If the computation has not been finished by this time, the master process kills all the slaves and then exits. You should print an appropriate message(s) in this case. Note that the master process may have to create multiple sets of slave processes. For example, if there are 8 numbers to be added, g the slave processes, and coordinating
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
