摘要
针对调度员仿真培训系统DTS(Dispatcher Training Simulator)对数据库快速传输数据的要求,结合DTS中访问数据库的特点及进程间通信的特征提出一种结合内存数据库与对象数据库构建实时内存数据库的方法。该实时内存数据库的优点是读/写速度快、无操作冗余、根据给定的条件主动向用户传输数据。针对所构建的实时内存数据库,提出了使用匿名管道方法进行计算进程与实时内存数据库进程间的通信(IPC),同时,对比了共享内存和套接字方法,给出了部分程序代码及对比试验数据。开发实践证明效果良好。
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.
出处
《电力自动化设备》
EI
CSCD
北大核心
2006年第3期61-65,共5页
Electric Power Automation Equipment
关键词
DTS
实时内存数据库
匿名管道
进程间通信
实时性
共享内存
DTS
real-time memory resident database
anonymous pipes
inter-process communication
real time
shared memory