• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (7): 96-101.

• 论文 • 上一篇    下一篇

DotNet环境下分布式并发离散事件仿真建模与实现

胡斌[1,2] 章德宾[1,2] 张金隆[1]   

  • 出版日期:2007-07-01 发布日期:2010-06-02

  • Online:2007-07-01 Published:2010-06-02

摘要:

DotNet环境对多线程技术提供了良好的支持,对于分布式离散事件,多线程技术能够以最少代价、最便捷的方式实现其并发活动的仿真。异步多线程仿真编程中的主要问题是 线程的引入与控制、对各结点间的仿真时钟同步问题、线程间活动的同步与消息传递、临界变量的访问与保护机制等。从系统实现角度对这些问题进行分析是建模的必要条件 件。本文进一步讨论了各结点间通过消息交互的加工过程,最后以控制台方式将分布式离散事件仿真中的主要关键活动编程实现。通过对仿真实现全过程的讨论可以看出,多 线程技术能够有效地实现分布式并发离散事件的仿真。

关键词: 分布式 UML 并发离散事件 多线程编程 模拟时钟同步

Abstract:

The DotNet environment can achieve the distributed discrete events simulation with the least efforts. The main problem of multithreads programming is   the manipulation and control of the threads, the synchronization with a simulation clock, the message transfer and the critical variant protection. The   paper discusses these problems with a distributed machining task. And finally a console type program is developed with the Microsoft visual C# language.  The paper expatiates the process of realizing the simulation almost all around.

Key words: (distributed, UML, discrete events, multithreads programming, analog clock synchronization)