Question: Consider the following program: The goal for the code following the fork 0 statement is as follows: - The program must display the message Could


Consider the following program: The goal for the code following the fork 0 statement is as follows: - The program must display the message "Could not create process!" if process creation is not successful - The parent process must wait for the child process to be done and then return - The child process must switch to a different program based on what is passed in the argvarray To achieve this goal, appropriate code must be put into the regions marked as "Block 1", "Block 2" and "Block 3". Match the block with the code that should go into the block. The goal for the code following the fork() statement is as follows: - The program must display the message "Could not create process!" if process creation is not successful - The parent process must wait for the child process to be done and then return - The child process must switch to a different program based on what is passed in the argvarray To achieve this goal, appropriate code must be put into the regions marked as "Block 1", "Block 2" and "Block 3". Match the block with the code that should go into the block. Block 1 Block 2 Block 3 No new data to save. Last checked at 5:43pm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
