并行离散事件仿真经过多年的研究,在时间同步、模型划分、状态保存等方面涌现了大量的协议和算法。在开发运行于多核计算机上的并行离散事件仿真引擎时,为了有效支持各种协议和算法,提出了插件式仿真引擎体系结构。介绍了插件的开发、组合、使用方法及仿真引擎的运行时结构,开发了命名为P-SMP2的多核并行仿真引擎,并对其性能进行了分析。插件机制具有灵活性高、耦合性低、开发效率高、可维护性好的优势。
Parallel Discrete Event Simulation(PDES) has been studied for several decades and there have been many protocols and algorithms on synchronization,model partitioning,state saving,etc.For developing a simulation engine for PDES on the multi-core platform,a plug-in architecture was proposed so as to support various protocols and algorithms.The development,composition and use methods of plug-ins as well as the runtime structure of the simulation engine were discussed.A simulation engine called P-SMP2 was developed and its performance was analyzed.The plug-in mechanism has the advantages of high flexibility,low coupling,high development efficiency and good maintainability.