进程间通信的简单体会

  一.实现pipe/msgqueue/sems/shm相关代码 1.    实现pipe,从键盘读取数据写入管道,读取数据,写到屏幕 (1)    代码 #include<stdio.h> #include<stdlib.h> #include<string.h> #include<unistd.h> intmain() {    int fds[2];    char buf[100];   
相关文章
相关标签/搜索