Description
Create a program(forkchildren.c) that will fork off two children.One child will run the “ls -l” command.The other will run “cat forkchildren.c”.Be sure to check for success after the exec happens.The main program will wait for the children to finish and then print a note saying it is finished and then it will end.No pipe is needed for this assignment, each child is separate.Submit a screenshot showing the code and the output.
Explanation & Answer:
code
User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.