The wait function will suspend execution of the calling thread until status information for one of its terminated child processes is available.
- The wait function will suspend execution of the calling thread until status information for one of its terminated child processes is available, or until delivery of a signal whose action is either to execute a signal-catching function or to terminate the process.
- Until one of its child processes ends or a signal is received, a call to wait() pauses the caller process.
- Parent process continues to run after wait system call command after child process exits.
- Child process may terminate due to any of these:
- From main, it calls exit() and returns (an int).
- When a signal is received (by the OS or another process), its default response is to terminate.
learn more about Child process here: https://brainly.com/question/17925458
#SPJ4