Social Sciences, asked by disha4974, 11 months ago

Which of the following does not lead to a correct method to start a new process?
(1) The shell executes a fork() and then the selected program is loaded into memory via an exec().
(2) The shell executes a fork() and then the selected program is loaded into memory via an execcv().
(3) The shell executes a fork() and then the selected program is loaded into memory via another fork().
(4) None of the above

Answers

Answered by shivam5087
0
I think 2nd option is correct

Answered by vinod04jangid
0

Answer:

(3) The shell executes a fork() and then the selected program is loaded into memory via another fork().

Explanation:

When a procedure calls fork, it's far deemed the discern procedure and the newly created procedure is its child. After the fork, each approaches now no longer most effective run the identical application, however they resume execution as aleven though each had referred to as the gadget call.

When a application is loaded into the reminiscence and it turns into a procedure, it is able to be divided into 4 sections ─ stack, heap, text, and data.

#spj3

Similar questions