摘要
WindowsNT的多线程能力适合处理并行性任务,在主线程中可以创建多个子线程,每个子线程可以独立完成一个子任务,一个程序可以同时完成多个任务。使用多线程技术,既加快了系统的反应速度,又提高了执行效率。该文介绍了Win dowsNT环境下基于MFC的多线程编程技术的原理、线程间的通信及同步控制的方法,以及Winsock网络编程的原理。最后介绍了在微机局域网(LAN)下采用多线程和Winsock编程技术进行空空导弹分布式实时仿真系统的设计过程。
The multithread capacity of WindowsNT is fit for controlling parallel tasks. We can create several sub-threads in the main-thread,and every sub-thread works independently. Thus a program can do several jobs at the same time. With the multithread technology,the system may respond more rapidly,and also have higher efficiency. In this article,the multithread technology,the communication and synchronization control methods between threads based on MFC are introduced,and the Winsock network programming technology is also presented.In the end,we researched the design process of the Air-air Missile Distributed Realtime Simulation System with the technology of multithread and Winsock in the LAN.
出处
《计算机仿真》
CSCD
2004年第8期30-33,共4页
Computer Simulation
关键词
多线程
套接字
导弹
实时仿真
Multithread
Socket
Missile
Realtime Simulation