waitpid()有什么作用? [英] What does waitpid() do?
本文介绍了waitpid()有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
waitpid()
的用途是什么?
推荐答案
通常用于等待特定进程完成(或者,如果使用特殊标志,则更改状态),具体取决于其进程ID(否则称为一个pid
).
It's used generally to wait until a specific process finishes (or otherwise changes state if you're using special flags), based on its process ID (otherwise known as a pid
).
它也可以用于等待一组子进程中的任何一个,既可以是特定进程组的子进程,也可以是当前进程的任何子进程.
It can also be used to wait for any of a group of child processes, either one from a specific process group or any child of the current process.
有关血腥细节,请参见此处.
See here for the gory details.
这篇关于waitpid()有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文