摘要
Linux系统中管道通信是从Unix系统继承的一种通信方式,管道是操作系统内核管理的一个内存缓冲区,采用半双工的通信方式。由于管道是临界资源,所以进程要互斥地访问管道,管道分为无名管道和命名管道。文章分析了Linux进程之间采用无名管道和命名管道通信的特点,并对无名管道的父子进程、兄弟进程以及命名管道通信进行了研究对比。
Pipe communication in Linux system is a communication mode inherited from Unix system.The pipe is a memory buffer managed by the operating system kernel,and it adopts half-duplex communication mode.Because pipe is a critical resource,process should access the pipe file mutually exclusive.Pipes are divided into anonymous pipe and named pipe.This paper analyzes the characteristics of pipe communication mainly adopts the anonymous pipe and named pipe between Linux Processes.The research and comparison of the parent-child process,sibling process and the anonymous pipe and named pipe communication is carried out.
作者
邓飞
蔡波
DENG Fei;CAI Bo(Chengdu Colledge of University of Electronic Science and Technology of China,Chengdu 611731,China)
出处
《现代信息科技》
2023年第14期54-56,共3页
Modern Information Technology
关键词
进程通信
临界资源
无名管道
命名管道
process communication
critical resource
anonymous pipe
named pipe