|国家预印本平台
首页|RTI的线程模型在仿真系统中的研究与应用

RTI的线程模型在仿真系统中的研究与应用

he Research and Application of RTI Process Models in Simulation Systems

中文摘要英文摘要

RTI(Run-Time Infrastructure)是仿真与建模高层体系结构HLA(High Level Architecture)的实现。基于多线程模型的RTI开发联邦成员时会遇到以下两个问题:怎样保证仿真主线程和回调线程互斥访问共享数据;无论使用哪种线程模型的RTI,在回调函数中都不能直接调用RTI服务。首先讨论了RTI的线程模型以及其对开发联邦成员的影响,然后讨论利用回调队列缓冲回调事件的方法解决以上提出的两个问题,最后给出了用C++语言实现的回调队列。

RTI (Run-Time Infrastructure) is the implementation of Modeling and Simulation High Level Architecture. The following two problems will be encountered when we use multi-threaded RTI: the problem that how to ensure that the callback thread and the main simulating thread have mutually exclusive access to the shared data structures and the problem that RTI services can't be invoked in the callback functions no matter which RTI process model we choose. Firstly, the RTI process model and its influence on developing federates are argued, and then design a callback queue to buffer the callback events in order to solve the above two problems. Lastly, the implementation of the callback queue is given using C++.

刘晓鸿、李沫

计算技术、计算机技术

HLARTI线程模型同步

HLARTIprocess modelsynchronization

刘晓鸿,李沫.RTI的线程模型在仿真系统中的研究与应用[EB/OL].(2011-10-20)[2025-08-02].http://www.paper.edu.cn/releasepaper/content/201110-198.点此复制

评论