Question: Is there any difference between wait ( NULL ) and waitpid ( - 1 , NULL, 0 ) ? A . No difference: Both wait
Is there any difference between waitNULL
and waitpid NULL,
A No difference: Both waitNULL and waitpid NULL, behave
the same way, waiting for any child process to terminate.
B Yes, there's a difference: waitNULL only waits for a specific
child process to terminate, while waitpid NULL, waits for
any child process.
C Yes, there's a difference: waitNULL waits for any child process,
but waitpid NULL, waits only for a specific child process
with a given PID.
D Yes, there's a difference: waitNULL waits for any child process,
while waitpid NULL,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
