Question: For this question, I understand the basic concepts of fork, exec, parent, and child. However, I am not quite sure how it relates to the

For this question, I understand the basic concepts of fork, exec, parent,For this question, I understand the basic concepts of fork, exec, parent, and child. However, I am not quite sure how it relates to the helloWorld program.

5. Suppose you have a hello.cpp file that you've compiled into a binary called /hello. As you know, you can 2 run this with the steps shown below: -bash-4.2$./hello Hello, World bash-4.2$ In the steps shown, under the hood, somehow something called "fork and "exec" are involved in getting this program to actually start running. And there is some kind of "parent" and "child", somehow involved. For each of the following, describe its role, relating it to these concepts. Be brief but be just specific enough that the grader has NO DOUBT that you've read and understood the discussion of these concepts in the reading, and how each of them relates to running a /hello program. a. (3 pts) fork CS32 W19 b. (3 pts) exec c. (3 pts) parent d. (3 pts) child

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!