1.

Which system call is used by the parent process to wait for the child process to complete?(a) wait(b) exec(c) fork(d) exitThe question was posed to me during an online exam.This interesting question is from Process Status:ps Command and Phases of a Process topic in portion The Process of Unix

Answer»

Right answer is (B) exec

Easy explanation: The parent process executes the WAIT() SYSTEM CALL to wait for the child process to complete. It picks up the exit status of the child and then continues with its other functions.



Discussion

No Comment Found

Related InterviewSolutions