一种改进的共享存储通信机制  被引量:1

AN IMPROVED INTER PROCESS COMMUNICATION MECHANISM USING SHARED MEMORY

在线阅读下载全文

作  者:王世铀[1] 郭福顺[1] 毕硕本 臧天仪[1] 

机构地区:[1]哈尔滨工业大学计算机科学与工程系,哈尔滨150001 [2]大庆油田设计院,大庆163700

出  处:《小型微型计算机系统》1999年第9期649-653,共5页Journal of Chinese Computer Systems

基  金:国防科工委"九五"计划预研项目

摘  要:在操作系统的设计和实现中,共享存储是一种普遍采用的进程通信机制.目前的实现中,大多是将共享存储区放于用户空间中,并随着程序运行的需要而动态的创建、附接、断接和撤消共享区,并对其进行换入/换出等操作.这些操作引入了较多的额外开销,影响了进程通信的效率.另一方面,在目前的实现中,对共享区中空间的管理和使用缺乏灵活性.本文提出了一种使用核心中固定区域作为共享存储区来实现进程间通信的方法,并对共享区中空间的管理采取了有效的措施.这种方法可以有效的减少数据拷贝以及共享区操作等额外开销,从而获得较高的通信效率,并增强了共享区空间使用的灵活性.本文描述了这一通信方法的设计和实现,并给出了性能分析和评价.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.

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

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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