摘要
安全高效的进程间通信机制是操作系统中实现进程间协同工作的关键。针对现有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.
出处
《计算机应用与软件》
CSCD
2011年第1期137-141,149,共6页
Computer Applications and Software
基金
霍英东青年基金(111027)