一种安全高效的Java操作系统IPC机制的设计与实现  

DESIGN AND IMPLEMENTATION OF A SAFE AND EFFECTIVE INTER-PROCESS COMMUNICATION MECHANISM FOR JAVA OPERATING SYSTEM

在线阅读下载全文

作  者:周旭[1] 卢凯[1] 李根[1] 

机构地区:[1]国防科学技术大学计算机学院,湖南长沙410073

出  处:《计算机应用与软件》2011年第1期137-141,149,共6页Computer Applications and Software

基  金:霍英东青年基金(111027)

摘  要:安全高效的进程间通信机制是操作系统中实现进程间协同工作的关键。针对现有Java操作系统普遍使用的共享堆和Java远程过程调用(RM I)等进程间通信机制在安全性、高效性等方面的缺陷,面向Java操作系统的结构特点和进程间通信需求,设计和实现了一种新的安全、高效的进程间通信机制MSP。MSP机制通过区分小尺寸和大尺寸消息,分别采用拷贝式传输方式和页面重映射的传输方式,同时满足了小尺寸消息对通信延迟敏感和大尺寸消息对通信带宽敏感的特点,避免大数据对象的拷贝开销,在不增加延迟的前提下大大提高了通信带宽。同时确保任何一个数据对象在任何时刻只被一个进程引用,从而防止一个进程对其他进程私有数据的访问,保证了通信的安全。测试数据表明,MSP进程间通信机制安全性好,并且在传递大对象时具有明显的性能优势。A safe and effective inter-process communication(IPC) mechanism is crucial to the cooperation between different processes in operating system.Considering that current IPC mechanisms based on shared heaps and Java remote method invocation(RMI) which are widely used by Java OS have limitations on security and efficiency,in this paper we analyse the structure of Java OS and the requirements of a safe IPC mechanism and design and implement a new safe and effective IPC mechanism MSP.The MSP uses the method of copying or page remapping to pass messages respectively,depending on the message size identified by it.This kind of method meets the requirement of small message which is sensitive to latency and of large message which is sensitive to bandwidth of communication.It avoids the cost of copying large data object and greatly expands the bandwidth of communication without putting on latency.The invariant that every object is referenced by only one process at any time is ensured by remapping,thus in turn it ensures that any process is unable to access other process' private data,making it a safe IPC mechanism.Testing result shows that the MSP mechanism has good security and performs especially well when passing large objects.

关 键 词:Java操作系统 进程间通信 安全 共享 RMI MSP 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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