引用本文: | 常鲜戎,张帅民,姜志宇.DTS中实时内存数据库的构建及匿名管道进程通信[J].电力自动化设备,2006,(3):61-65 |
| .Construction of real-time memory resident database and anonymous pipes used in IPC of DTS[J].Electric Power Automation Equipment,2006,(3):61-65 |
|
|
摘要: |
针对调度员仿真培训系统DTS(Dispatcher Training Simulator)对数据库快速传输数据的要求,结合DTS中访问数据库的特点及进程间通信的特征提出一种结合内存数据库与对象数据库构建实时内存数据库的方法。该实时内存数据库的优点是读/写速度快、无操作冗余、根据给定的条件主动向用户传输数据。针对所构建的实时内存数据库,提出了使用匿名管道方法进行计算进程与实时内存数据库进程间的通信(IPC),同时,对比了共享内存和套接字方法,给出了部分程序代码及对比试验数据。开发实践证明效果良好。 |
关键词: DTS,实时内存数据库,匿名管道,进程间通信,实时性,共享内存 |
DOI: |
分类号:TM73 |
基金项目: |
|
Construction of real-time memory resident database and anonymous pipes used in IPC of DTS |
CHANG Xian-rong ZHANG Shuai-min JIANG Zhi-yu
|
Abstract: |
A new real-time memory resident database combining the memory database and objective database is put forward for high-speed data transmission in DTS databases,which takes into account the characters of database access and IPC(Inter Process Communication) in DTS. It has fast I / O without redundant operations and sends data to users actively according to the query received. Anonymous pipes are adopted in IPC between calculation process and real-time memory database process,and the shared memory method and the socket method are compared. Partial codes and test data are provided. Practice shows it effective. |
Key words: DTS,real-time memory resident database,anonymous pipes,inter-process communication,real time,shared memory |