共享内存在高效进程间通信中的应用研究  

Research on the Application of Shared Memory in Efficient Inter Process Communication

在线阅读下载全文

作  者:江立 陆志恩 JIANG Li;LU Zhien(Nanfang College Guangzhou,Guangzhou 510970,China)

机构地区:[1]广州南方学院,广东广州510970

出  处:《现代信息科技》2023年第18期125-128,共4页Modern Information Technology

基  金:拓扑材料中光学特性的研究(2022BQ013)。

摘  要:在Linux系统中两个或多个进程间通信,是实现计算机内部传递信息的机制,它们之间是同步的关系,多个协作进程间完成数据的共享、消息的交换。文章基于Ubuntu 12操作系统环境,通过共享内存通信的方式设计一种基于多进程的同步关系,它们共享内存的同步通信机制。文章详细描述了该机制的设计原理和实现方式,并采用内核文件shm.h实现了进程同步,通过内存片段共享机制减少多个进程之间的切换时间,实现了共享内存在多进程间的高效通信。In a Linux system,communication between two or more processes is a mechanism for transmitting information within a computer.The relationship among them is synchronous,and data sharing and message exchange is completed among multiple collaborative processes.This paper is based on the Ubuntu 12 operating system environment and designs a synchronization relationship based on multiple processes through shared memory communication.They share a synchronous communication mechanism in memory.This paper provides a detailed description of the design principle and implementation method of this mechanism,and uses the kernel file shm.h to achieve process synchronization.Through the memory fragment sharing mechanism,the switching time among multiple processes is reduced,achieving efficient communication of shared memory among multiple processes.

关 键 词:PV操作 协作进程 共享内存 互斥信号量 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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