摘要:
SG*****003 董*一、实验过程实验1 :fork()的调用源代码 test.c#include <errno.h>#include <unistd.h>#include <stdio.h>#include <stdlib.h>int main(){ pid_t pid; int count=0; pid=fork(); count++; printf("count=%d\n",count); return 0;}编译后运行结果是实验2:fork()和exec()的组合使用源代码 string3.c#include< 阅读全文
posted @ 2013-05-27 20:32
青灯梦阑
阅读(257)
评论(0)
推荐(0)
摘要:
SG*****003 董*一、实验过程实验1 :fork()的调用源代码 test.c#include <errno.h>#include <unistd.h>#include <stdio.h>#include <stdlib.h>int main(){ pid_t pid; int count=0; pid=fork(); count++; printf("count=%d\n",count); return 0;}编译后运行结果是实验2:fork()和exec()的组合使用源代码 string3.c#include< 阅读全文
posted @ 2013-05-27 20:25
青灯梦阑
阅读(246)
评论(0)
推荐(0)

浙公网安备 33010602011771号