首页 | 本学科首页   官方微博 | 高级检索  
     

多线程控制技术在面向对象实时仿真中的应用
引用本文:李跃中,张勇. 多线程控制技术在面向对象实时仿真中的应用[J]. 飞机设计, 2001, 0(3): 61-65
作者姓名:李跃中  张勇
作者单位:1. 沈阳航空工业学院,沈阳,110034
2. 沈阳飞机设计研究所,沈阳,110035
摘    要:随着实时仿真复杂性的提高,单个的处理器不足以完成所有的必需仿真计算任务。希望能在不同的处理器上完成实时仿真的不同任务,对称多处理器的机制需要软件支持,以使每个处理器通过共享内存进行信息交换。利用多线程控制技术,可以在非全进程开销或不使用共享内存的条件下,使用多处理器。其理由在于线程本身就蕴涵有共享地址的概念。一个多线程的实时程序,利用其中的主线程控制其它的辅助线程,每个处理器用于完成一个辅助的实时计算线程,主线程负责实时时钟的监控,当时钟到达时,启动相应的辅助线程,辅助线程利用图形用户界面(GUI)来监控仿真的进行。

关 键 词:实时仿真  同步  进程  线程  数据腐蚀
修稿时间:2001-07-16

THE USE OF MULTIPLE THREADS IN AN OBJECT-ORIENTED REAL-TIME SIMULATION
Li Yuezhong,Zhang Yong. THE USE OF MULTIPLE THREADS IN AN OBJECT-ORIENTED REAL-TIME SIMULATION[J]. Aircraft Design, 2001, 0(3): 61-65
Authors:Li Yuezhong  Zhang Yong
Abstract:As real-time simulations become more complex, a single processor is no longer sufficient to perform all of the necessary computations. It becomes desirable to execute independent sections of a real-time simulation on different processors. The traditional approach to utilizing multiple processors on a symmetric multiprocessor machine involves writing a program composed of one process per processor that interact through shared memory. A program that uses threads can utilize multiple processor without the overhead of full processes or the use of a cumber some shared memory mechanism. This is due to the fact threads implicitly share a common address space. A multithreaded real-time program is organized as a main thread controlling zero or more auxiliary real-time threads. Each processor to be used for real-time computations is assigned a single auxiliary real-time thread. The main thread monitors the real-time clock and informs the auxiliary threads when the clock ticks. An auxiliary thread can also be used to monitor and control the simulation via a graphical user interface ( GUI).
Keywords:real-time simulation  synchronous  process  thread  data corruption  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号