基于内存映射的进程间通信实现跨平台软件互联互通  被引量:1

Realization of cross-platform software interconnection for inter-process communication based on memory mapping

在线阅读下载全文

作  者:党志斌 李迎纲 樊燕京 唐明[1] 

机构地区:[1]陕西黄河集团有限公司,陕西西安710043

出  处:《现代电子技术》2012年第14期46-47,共2页Modern Electronics Technique

摘  要:在某型号改研制过程中,软件运行于Windows XP操作系统中,需要将VC平台下编写的软件无缝嵌入delphi平台下编写的软件中,实现两个单独运行进程的互联互通。以内存文件映射技术为基础,提出了将共享内存区分为读数据区和写数据区,并利用特定字节设定允许读写标志。在读写数据时,分别在两个进程中采用间隔相等的轮询定时器,实现了在两个进程中数据的双向通信。后续试验表明,该方法可靠实用,软件改动量小,极大地促进了工厂的型号研制。In research.procedure, when software runs in Window XP operation system, the software compiled under VC platform needs to be embedded seamlessly into the software compile under Delphi platform to realize the interconnection of the two isolated processes which run alone. Base on memory file mapping technology, it is proposed that the shared memory area is splitted into reading area and writing area, and the permitted read-write symbol is set with the ascertained byte. when reading and writing data, the duplexing communication between two processes was realized by setting an equal interval polling timer in the processes. The follow-up test testifies that the method is reliable and practical, and the less modification in soft- ware is achieved. The method promoted the development of products in factory greatly.

关 键 词:内存文件映射 进程间通信 轮询定时器 互联互通 

分 类 号:TN919-34[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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