首页 | 本学科首页   官方微博 | 高级检索  
     

一种改进的共享存储通信机制
引用本文:王世铀 毕硕本. 一种改进的共享存储通信机制[J]. 小型微型计算机系统, 1999, 20(9): 649-653
作者姓名:王世铀 毕硕本
作者单位:[1]哈尔滨工业大学计算机科学与工程系 [2]大庆油田设计院
基金项目:国防科工委"九五"计划预研项目
摘    要:
在操作系统的设计和实现中,并享存在是一种普遍采用的进程通信机制。目前的实现中,大多是将共享存储区放于用户空间中,并随着程序运行的需要而动态的创建、附接、断接和撤消共享区,并对其进行换入/换出等操作。这些操作引入了较多的额外开销,影响了进程通信的效率。另一方面,在目前的实现中,对共享区中中空间的管理和使用缺乏灵活性。本文提出了一种使用核心中固定区域作为共享存储区来实现进程间通信的方法,并对共享区中空

关 键 词:进程通信 共享存储 操作系统 UNIX

AN IMPROVED INTER PROCESS COMMUNICATION MECHANISM USING SHARED MEMORY
WANG Shi you GUO Fu shun. AN IMPROVED INTER PROCESS COMMUNICATION MECHANISM USING SHARED MEMORY[J]. Mini-micro Systems, 1999, 20(9): 649-653
Authors:WANG Shi you GUO Fu shun
Abstract:
In the design and implementation of operating system, shared memory is one commonly adopted inter process communication mechanism. Currently, shared memory is usually placed in user address space. And with the running of program, some operations of shared memory, such as creating, attaching, detaching and destroying, as well as swapping into or out of memory, must been done dynamically. All of these operations incur some expensive overheads, and do some harm to inter process communication. Another shortcoming of current shared memory is that there is not enough flexibility in the utilization of space in shared memory. In this paper, one inter process communication mechanism is presented, which uses a special region in kernel address space as shared memory and adopts an efficient method to manage the space in the shared memory. This mechanism improve inter process communication performance by reducing message data coping and shared memory operations greatly, at the same time, an enhanced flexibility of shared memory space utilization is achieved. The design and implementation of this communication mechanism is presented here, as well as its performance analysis.
Keywords:Inter process communication Shared memory Communication efficiency
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号