At present, there are some static code analyses and optimizations that can be applied to Concurrent C programs to improve their performance or verify their logical correctness. These analyses and optimizations are int...At present, there are some static code analyses and optimizations that can be applied to Concurrent C programs to improve their performance or verify their logical correctness. These analyses and optimizations are inter-process. In order to make their implementation easy, we propose a new method to construct an optimizing compiling system CCOC for Concurrent C. CCOC supports inter-process code analysis and optimization to Concurrent C programs and does not affect the system's portability and separate compilation of source programs. We also discuss some implementation details of CCOC briefly.展开更多
Prolog is one of the most important candidates to build expert systems and AI-related programs and has potential applications in embedded systems. However, Prolog is not suitable to develop many kinds of components, s...Prolog is one of the most important candidates to build expert systems and AI-related programs and has potential applications in embedded systems. However, Prolog is not suitable to develop many kinds of components, such as data acquisition and task scheduling, which are also crucial. To make the best use of the advantages and bypass the disadvantages, it is attractive to integrate Prolog with programs developed by other languages. In this paper, an IPC-based method is used to integrate backward chaining inference implemented by Prolog into applications or embedded systems. A Prolog design pattern is derived from the method for reuse, whose principle and definition are provided in detail. Additionally, the design pattern is applied to a target system, which is free software, to verify its feasibility. The detailed implementation of the application is given to clarify the design pattern. The design pattern can be further applied to wide range applications and embedded systems and the method described in this paper can also be adopted for other logic programming languages.展开更多
集成了大型机移植到微机上的图形学算法模块,并增加GUI(graphic user interface)界面。使用Windows进程间通信技术来实现GUI界面和控制台程序间数据通信。利用管道技术并结合某曲面造型系统开发要求,编制了一个进程间通信的中介模块,给...集成了大型机移植到微机上的图形学算法模块,并增加GUI(graphic user interface)界面。使用Windows进程间通信技术来实现GUI界面和控制台程序间数据通信。利用管道技术并结合某曲面造型系统开发要求,编制了一个进程间通信的中介模块,给出该模块的代码和执行流程,在系统运行时通过直接调用中介模块实现GUI菜单命令驱动算法执行的数据交互。中介模块经适当修改后可以解决类似场合的数据通信问题。展开更多
新一代北京谱议(BESIII)数据获取系统(DAQ)是北京正负电子对撞机(BEPC)上的大型高能物理探测器的关键组成部分,分布式环境下软件的进程通信是设计和实现的关键技术之一。介绍了数据获取系统中所使用的一种分布式进程通信(IPC,Inter Proc...新一代北京谱议(BESIII)数据获取系统(DAQ)是北京正负电子对撞机(BEPC)上的大型高能物理探测器的关键组成部分,分布式环境下软件的进程通信是设计和实现的关键技术之一。介绍了数据获取系统中所使用的一种分布式进程通信(IPC,Inter Process Communication)框架,该框架基于CORBA系统进行开发。着重描述了该框架在数据获取系统在线软件中的设计、实现及应用。展开更多
针对调度员仿真培训系统DTS(Dispatcher Training Simulator)对数据库快速传输数据的要求,结合DTS中访问数据库的特点及进程间通信的特征提出一种结合内存数据库与对象数据库构建实时内存数据库的方法。该实时内存数据库的优点是读/写...针对调度员仿真培训系统DTS(Dispatcher Training Simulator)对数据库快速传输数据的要求,结合DTS中访问数据库的特点及进程间通信的特征提出一种结合内存数据库与对象数据库构建实时内存数据库的方法。该实时内存数据库的优点是读/写速度快、无操作冗余、根据给定的条件主动向用户传输数据。针对所构建的实时内存数据库,提出了使用匿名管道方法进行计算进程与实时内存数据库进程间的通信(IPC),同时,对比了共享内存和套接字方法,给出了部分程序代码及对比试验数据。开发实践证明效果良好。展开更多
文摘At present, there are some static code analyses and optimizations that can be applied to Concurrent C programs to improve their performance or verify their logical correctness. These analyses and optimizations are inter-process. In order to make their implementation easy, we propose a new method to construct an optimizing compiling system CCOC for Concurrent C. CCOC supports inter-process code analysis and optimization to Concurrent C programs and does not affect the system's portability and separate compilation of source programs. We also discuss some implementation details of CCOC briefly.
基金supported by the National Natural Science Foundation of China (No.61304111)National Basic Research Program of China (No. 2014CB744904)Fundamental Research Funds for the Central Universities of China (Nos. YWF-14-KKX-001 and YWF-13-JQCJ)
文摘Prolog is one of the most important candidates to build expert systems and AI-related programs and has potential applications in embedded systems. However, Prolog is not suitable to develop many kinds of components, such as data acquisition and task scheduling, which are also crucial. To make the best use of the advantages and bypass the disadvantages, it is attractive to integrate Prolog with programs developed by other languages. In this paper, an IPC-based method is used to integrate backward chaining inference implemented by Prolog into applications or embedded systems. A Prolog design pattern is derived from the method for reuse, whose principle and definition are provided in detail. Additionally, the design pattern is applied to a target system, which is free software, to verify its feasibility. The detailed implementation of the application is given to clarify the design pattern. The design pattern can be further applied to wide range applications and embedded systems and the method described in this paper can also be adopted for other logic programming languages.
文摘集成了大型机移植到微机上的图形学算法模块,并增加GUI(graphic user interface)界面。使用Windows进程间通信技术来实现GUI界面和控制台程序间数据通信。利用管道技术并结合某曲面造型系统开发要求,编制了一个进程间通信的中介模块,给出该模块的代码和执行流程,在系统运行时通过直接调用中介模块实现GUI菜单命令驱动算法执行的数据交互。中介模块经适当修改后可以解决类似场合的数据通信问题。
文摘新一代北京谱议(BESIII)数据获取系统(DAQ)是北京正负电子对撞机(BEPC)上的大型高能物理探测器的关键组成部分,分布式环境下软件的进程通信是设计和实现的关键技术之一。介绍了数据获取系统中所使用的一种分布式进程通信(IPC,Inter Process Communication)框架,该框架基于CORBA系统进行开发。着重描述了该框架在数据获取系统在线软件中的设计、实现及应用。
文摘针对调度员仿真培训系统DTS(Dispatcher Training Simulator)对数据库快速传输数据的要求,结合DTS中访问数据库的特点及进程间通信的特征提出一种结合内存数据库与对象数据库构建实时内存数据库的方法。该实时内存数据库的优点是读/写速度快、无操作冗余、根据给定的条件主动向用户传输数据。针对所构建的实时内存数据库,提出了使用匿名管道方法进行计算进程与实时内存数据库进程间的通信(IPC),同时,对比了共享内存和套接字方法,给出了部分程序代码及对比试验数据。开发实践证明效果良好。