Right choice is (b) waitpid
Easy explanation: wait system call suffers from a number of limitations. It blocks until a child dies and if a parent spawns several children, wait returns the moment one of them dies. Wait also can’t handle process group. For these reasons, the waitpid system call is used.