3. (10 points)Parallel: Implementtheparallelutilitythathas2ormore commandlinearguments:./parallel Forexample,ifyoutype:...

3. (10 points)Parallel: Implementtheparallelutilitythathas2ormore commandlinearguments:./parallel Forexample,ifyoutype: ./parallel4sleep10OUTPUT:SUCCESSinrunning4parallelsleeptasksImplementtheparallelutilitythathas2ormore commandlinearguments.Thiswillexecute4copies ofthesleepprocessfor10seconds.Yourprogramshouldallowanarbitrarynumberofcommandline argumentsfortheprocesstoberuninparallel.Theparentprocessshouldwaitforallchildprocesses tofinishbeforeexitingbacktotheshell.Iftheformatofthecommandisnotrecognized (e.g.thefirst argument is not an integer), an error can be displayed. All your code should be contained in the parallel.c file, and the Makefile. You should handle the case that the program to be executed is succesfullyexecuted,andthecasewheretheprogramfailstoexecute.
Oct 29, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here