基于多线程技术实现Windows串行通信.pdf
文本预览下载声明
第 14 卷 第 2 期 微 机 发 展 Vol. 14 No. 2
2004 年 2 月 Microcomputer Development Feb. 2004
基于多线程技术实现 Windows 串行通信
李湘江 ,汤 琛
(长沙理工大学 计算机中心 ,湖南 长沙 410076)
摘 要 :多线程是 Windows 系统支持的一项十分重要的功能 ,特别有利于在同一程序中实现并发任务。多线程的实现可以使得各
端口独立 ,准确地实现串行通信 ,从而提高串行通信中的实时性和可靠性 ,使程序能够适应高速的数据采集和处理。文中分析了
基于 Windows 9x 平台上的串行通信和多线程编程的原理和开发方法 ,阐述了基于多线程技术串行通信的实现方法。
关键词 : 串行通信;多线程;应用编程接口
( )
中图分类号: TN9151 文献标识码 :A 文章编号 : 1005 - 3751 2004 02 - 0063 - 03
Realize Serial Communication in Windows Based
on Multi Thread Technology
L I Xiangjian g , TAN G Chen
(Computer Center , Changsha University of Science and Technology , Changsha 410076 ,China)
Abstract :Multi thread is an important function supported in Windows , and especially is useful for pro gram with multi tasks. The realizing
of multi thread can make the independence of each port , and accurately realize serial communication , increase the real - time and reliability
within serial communication , and employ multi threading technique which makes the program capable to high - speed data collecting and
processing. This paper analyses principles and development methods of serial communication and multi thread programming based on Win
dows 9x. It describes the method of implementing serial communication based on multi thread technology.
Key words :serial communication ;multi thread ; Windows API
串行通信具有连接简单、使用灵活方便、数据传递可
显示全部