MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Operating System
Process Creation
Q
A parent process calling _____ system call will be suspended until children processes terminate.
AA. Wait
BB. Fork
CC. Exit
DD. Exec
Correct Answer:
A. A. Wait
Explanation:
A parent process calling wait system call will be suspended until children processes terminate. A parameter is passed to wait system call which will obtain exit status of child as well as wait system call returns PID of terminated process.