fork函数

来源:互联网 发布:华为t8300数据恢复 编辑:程序博客网 时间:2024/05/20 21:47

int main(){

int i=0;

for(i=0;i<3;i++){

     fork();

}

printf("hello word");

return 0;

}

有谁能解释一下这个程序总共产生了几个进程?打印hello word 多少次?(如果能画出进程组系感激不尽).

//linux环境使用gc++编译器

0 0
原创粉丝点击