fork的问题
yfk 博客专家认证 2009-11-02 12:29:44 EMC的一个笔试题
How many processes are created in the following c program(Assume all forks return on sucdess)
#include <unistd.h>
int main()
{
fork();
fork() && fork() || fork();
fork();
}
我运行了一下,创建了19个新的进程,为什么,请牛人解释解释啊。
谢谢