1.

Which system call can be used by a parent process to determine the termination of child process?(a) wait(b) exit(c) fork(d) getI had been asked this question in an internship interview.The doubt is from Processes in portion Processes of Operating System

Answer»

Right choice is (a) wait

Best explanation: wait() system call is used by the PARENT process to determine TERMINATION of CHILD process. The parent process USES wait() system call and GETS the exit status of the child process as well as the pid of the child process which is terminated.



Discussion

No Comment Found

Related InterviewSolutions