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

wait
exit
fork
get
wait  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.

Related posts

If a process fails, most operating system write the error information to a ______
A. log file
B. another running process
C. new file
D. none of the mentioned
A process can be terminated due to __________
A. normal exit
B. fatal error
C. killed by another process
D. all of the mentioned
The number of processes completed per unit time is known as __________
A. Output
B. Throughput
C. Efficiency
D. Capacity
The primary distinction between the short term scheduler and the long term scheduler is __________
A. The length of their queues
B. The type of processes they schedule
C. The frequency of their execution
D. None of the mentioned
What is the objective of multiprogramming?
A. Have a process running at all time
B. Have multiple programs waiting in a queue ready to run
C. To increase CPU utilization
D. None of the mentioned
What is a long-term scheduler?
A. It selects processes which have to be brought into the ready queue
B. It selects processes which have to be executed next and allocates CPU
C. It selects processes which heave to remove from memory by swapping
D. None of the mentioned
What is a short-term scheduler?
A. It selects which process has to be brought into the ready queue
B. It selects which process has to be executed next and allocates CPU
C. It selects which process to remove from memory by swapping
D. None of the mentioned

Leave a Reply

Your email address will not be published. Required fields are marked *