08 2022 档案

进程间通信之匿名管道
摘要:Linux手册中对匿名管道的描述如下: DESCRIPTION pipe() creates a pipe, a unidirectional data channel that can be used for interprocess communication. The array pipefd 阅读全文

posted @ 2022-08-31 16:24 OrangeGLC 阅读(157) 评论(0) 推荐(0)

进程间通信之命名管道
摘要:与匿名管道相比,命名管道通信的两个进程可以脱离父子关系。即任意两个进程都能通过该方式通信。 测试代码如下。 发送端 #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include 阅读全文

posted @ 2022-08-26 14:10 OrangeGLC 阅读(62) 评论(0) 推荐(0)

导航