Linux中多种内存共享机制及其应用探究  被引量:2

Analysis and application of multiple memory sharing mechanisms in Linux

在线阅读下载全文

作  者:汪敏 Wang Min(Management Office of Song Qingling Cemetery,Honorary President of the People's Republic of China,Shanghai 200237,China)

机构地区:[1]中华人民共和国名誉主席宋庆龄陵园管理处,上海200237

出  处:《无线互联科技》2023年第4期1-4,22,共5页Wireless Internet Technology

摘  要:Linux操作系统广泛运用在服务器运维、嵌入式软件设计和移动端应用开发中,而对于Linux进程间通信机制的理解和研究又决定了软件之间数据通信的效率。Linux有多种方式实现进程之间的通信,包括管道、消息队列、信号量、socket、内存共享等,其中内存共享是效率最高的一种方式,实现了不同进程对同一块物理内存的访问,不需要陷入内核态中进行内核空间和用户空间的数据拷贝,大大提高了通信效率。文章介绍了在Linux操作系统中内存共享的4种不同实现方式,同时介绍了不同实现方式在原理和应用场景上的区别。Linux operating system is widely used in server operation and maintenance,embedded software design and mobile application development,and the understanding and research of Linux inter-process communication mechanism determines the efficiency of data communication between software.Linux has a variety of ways to achieve communication between processes,including pipes,message queues,semaphores,sockets,memory sharing,etc.Memory sharing is the most efficient way to realize the access of different processes to the same physical memory,and it does not need to be trapped in the kernel state to copy data in the kernel space and user space,which greatly improves the communication efficiency.This article introduces four different ways to realize memory sharing in the Linux operating system,and introduces the differences between different ways in principle and application scenarios.

关 键 词:LINUX操作系统 内存共享 进程间通信 dmabuf框架 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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