1.

If a process does not call exec after forking ____________(a) the program specified in the parameter to exec will replace the entire process(b) all the threads should be duplicated(c) all the threads should not be duplicated(d) none of the mentionedThis question was addressed to me in quiz.This intriguing question originated from The Fork and exec System Calls in section The Linux System of Operating System

Answer»

Correct option is (b) all the threads should be duplicated

For EXPLANATION: The new process is purely BASED on fork, due to no exec COMMAND, duplication will be DONE.



Discussion

No Comment Found

Related InterviewSolutions