linux-ipcs:Linux进程间通信(Inter-Process Communication)方式汇总

上传者: 42128015 | 上传时间: 2022-12-01 14:39:11 | 文件大小: 46KB | 文件类型: ZIP
C
linux-IPCs Linux进程间通信方式汇总 目前已包含的方式 管道(PIPE) FIFO(有名管道) XSI消息队列 XSI信号量 XSI共享内存 POSIX信号量 域套接字(Domain Socket) 信号(Signal) 互斥量(Mutex) 其中信号(signal)和信号量(semaphore)本质上并不算是进程间通信方式,应该是进程间同步的方式,但是也可以起到一定的通信作用,故也列在上面。 另外普通的mutex是作用线程间同步用的,但是可以将进程A和进程B共享的内存中初始化一个mutex,这样就可以用将此mutex用作进程间通信用了。 扩展 进程与内核通信 其实本来的计划是分两个大块,一块写进程间通信,一块写内核与用户空间通信。后来时间有限,内核与进程间只写了一个netlink,所以没有放到这里,等以后有时间了再补充吧。 线程间同步 同一个进程的多个线程在同一个地址空间,

文件下载

资源详情

[{"title":"( 57 个子文件 46KB ) linux-ipcs:Linux进程间通信(Inter-Process Communication)方式汇总","children":[{"title":"linux-ipcs-master","children":[{"title":".gitignore <span style='color:#111;'> 292B </span>","children":null,"spread":false},{"title":"domain_socket","children":[{"title":"Makefile <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"socket.c <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"socket.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 981B </span>","children":null,"spread":false}],"spread":true},{"title":"mutex","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"pipe","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"XSI_shm","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 325B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 17.60KB </span>","children":null,"spread":false},{"title":"XSI_msgq","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"XSI_sem","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 423B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"IPC_mutex","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"main_good.c <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 949B </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"fifo","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 922B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"POSIX_sem","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"process_sem.c <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"multi_processes_sem <span style='color:#111;'> 13.22KB </span>","children":null,"spread":false},{"title":"multi_threads_sem <span style='color:#111;'> 13.08KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 408B </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"thread_sem.c <span style='color:#111;'> 552B </span>","children":null,"spread":false}],"spread":true},{"title":"signal","children":[{"title":"debug.c <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"debug.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明