What is difference between wait and Waitpid?

What is difference between wait and Waitpid?
Answer
The
wait function can block the caller until a child process terminates, whereas waitpid has an option that prevents it from blocking. The waitpid function doesn’t wait for the child that terminates first; it has a number of options that control which process it waits for.
 

Tìm kiếm

Back
Top