摘要
本文首先简单介绍了多线程的基本概念,然后叙述了辅助线程和用户接口线程的使用场合以及实现过程,并提出采用线程同步的方法来协调多线程执行和保证资源的整体性。最后,通过编写一个简单串口通信程序对多个串口进行实时监控,来介绍多线程编程技术在串口通信中的应用。
This article briefly introduces the basic concept of multithreading firstly, then describes where and how to use work thread and user interface thread. Additionally, it brings up synchronous method to cooperate multiple threads and to ensure resources integrity. Finally, in order to introduce the applications of the multithread technology in serial communication, we give a simple program frame of real - time monitor to several serial ports.
出处
《苏州市职业大学学报》
2003年第1期43-46,共4页
Journal of Suzhou Vocational University
关键词
多线程
同步对象
串口通信
multithreading, synchronous object, serial communication