Which system call can be used by a parent process to determine the termination of child process?

Which system call can be used by a parent process to determine the termination of child process?
A. wait
B. exit
C. fork
D. get
 
Answer: a
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.
 

Tìm kiếm

Back
Top