摘要
一、程序总体设计作为硬件的驱动程序首先要保证实时性,只有满足实时性的要求才能使有用数据不丢失,而且数据的有效性也有保证。从程序总体结构的设计上利用了Win32的新特性:使用进程和线程的非抢占多任务,即允许多进程与多线程同时执行实现多任务。一个程序可以有多个进程,一个进程又可以有多个线程,可以利用不同的进程去完成不同的任务,而且象进程一样,一个线程通过分配一个优先权级别来决定获得时间片的大小,这样可以定义用哪个线程处理实时任务,用哪个处理非实时任务。
In order to make three-dimension coordinate input device widely applied by the more people and technicians able to develop applications for the device under the base of the driver,this paper publishes some key technique about the device driver. The primary function of the driver is to keep the communication between the device and computer ,data acquisition from the serial port of computer ,data processing and transformation etc. At the same time the device driver provides an interface with operating system. The driver software is developed in Visual C+ + 5. 0 above the Windows95.
出处
《计算机科学》
CSCD
北大核心
1999年第11期61-63,共3页
Computer Science