Linux两种管道通信方式的分析  被引量:1

Analysis of Two Pipe Communication Ways of Linux

在线阅读下载全文

作  者:邓飞 蔡波 DENG Fei;CAI Bo(Chengdu Colledge of University of Electronic Science and Technology of China,Chengdu 611731,China)

机构地区:[1]电子科技大学成都学院,四川成都611731

出  处:《现代信息科技》2023年第14期54-56,共3页Modern Information Technology

摘  要: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.

关 键 词:进程通信 临界资源 无名管道 命名管道 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象