1.

A parent process calling _____ system call will be suspended until children processes terminate.(a) wait(b) fork(c) exit(d) execThe question was asked in a national level competition.I need to ask this question from Process Creation in section Processes of Operating System

Answer»

Right answer is (a) wait

To explain I would say: 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.



Discussion

No Comment Found

Related InterviewSolutions