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

  • 18
  • 0
  • 约1.43万字
  • 约 7页
  • 2020-06-15 发布于陕西
  • 举报

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

中国科技论文在线 RTI 的线程模型在仿真系统中的研究与 应用 李沫,刘晓鸿** 5 (北京邮电大学计算机学院,北京 100876) 摘要:RTI(Run-Time Infrastructure )是仿真与建模高层体系结构 HLA(High Level Architecture)的实现。基于多线程模型的RTI开发联邦成员时会遇到以下两个问题:怎样 保证仿真主线程和回调线程互斥访问共享数据;无论使用哪种线程模型的RTI,在回调函数 中都不能直接调用RTI服务。首先讨论了RTI的线程模型以及其对开发联邦成员的影响,然 10 后讨论利用回调队列缓冲回调事件的方法解决以上提出的两个问题,最后给出了用C++语言 实现的回调队列。 关键词:HLA;RTI;线程模型;同步 中图分类号:TP391.75 15 The Research and Application of RTI Process Models in Simulation Systems LI Mo, LIU Xiaohong (School of Computer Science, Beijing University of Posts and Telecommunications, Beijing 100876) 20 Abstract: 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 25 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++. Keywords: HLA; RTI; process model; synchronization 30 0 引言 HLA 是新一代分布交互式仿真体系结构标准。1998年产生了DoD(Department of Defense)

文档评论(0)

1亿VIP精品文档

相关文档