進程間通信的簡單體會

  一.實現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];   
相關文章
相關標籤/搜索