Circle TRUE (T) or FALSE (F) for the following statements: T F The exec () syste
ID: 3788358 • Letter: C
Question
Circle TRUE (T) or FALSE (F) for the following statements:
T F The exec () system call creates a new process.
T F After a process creates a child process using fork(), both execute the program of the parent process in its entirety.
T F In a program, if an exec () precedes the call to fork (), we will end up with 3 processes -
one that will run the main program, second that will run the program called by exec (), and
third that will run another copy of main program from the point of fork ().
T F A shell runs a program by calling fork () and exec ().
T F The fork () system call returns 0 when the new process finishes.
Explanation / Answer
1.The exec () system call creates a new process - False.
Explanation :-
The system call fork() is used to create a new process.
2.The fork () system call returns 0 when the new process finishes - True.
Explanation :-
The fork() system call returns 0 when successful completion to the child process and returns the child process ID to the parent process.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.