question archive Describe the role of the wait() process in regard to process termination in the detailed explanation with your own words example
Subject:Computer SciencePrice:2.87 Bought7
Describe the role of the wait() process in regard to process termination in the detailed explanation with your own words example.
Answer:
The wait() function lets the calling process obtain status information about one of its child processes. If status information is available for two or more child processes, the order in which their status is reported is unspecified. If more than one thread is suspended in wait() awaiting termination of the same process, exactly one thread returns the process status at the time of the target child process termination. The other threads return -1, with errno set to ECHILD.