2016年10月26日
摘要: /***** linux下的pipe管道通讯 ****/ #include<unistd.h>#include<stdio.h>#include<string.h>#define MAXSIZE 100int main(void){ int fd[2],pid,line; char message[ 阅读全文
posted @ 2016-10-26 22:00 魄灠 阅读(183) 评论(0) 推荐(0) 编辑
摘要: /**** 进程 ***/ #include<sys/types.h>#include<stdio.h>#include<stdlib.h>#include<unistd.h>int main(){ pid_t pid; if( ( pid = fork() ) < 0 ) { printf("fo 阅读全文
posted @ 2016-10-26 10:51 魄灠 阅读(211) 评论(0) 推荐(0) 编辑