摘要
正确使用多线程技术能够更好地开发并发性任务和提高测控系统性能,在避免系统阻塞和减少系统运行时间方面有着明显优点。详细介绍了LabWindows/CVI环境中多线程机制以及线程池中关键的数据保护技术,设计了一个实例程序,同时实现了线程池、数据保护、异步定时器等多线程技术,实例同时说明了通过不同方法访问线程安全变量的差异。
This paper introduces sufficiently the multithreading mechanism in LabWindows /CVI and the critical data protection technology in thread pool,designs a program which realizes simultaneously the thread pool,the data protection and the asynchronous timer.The program also explains the differences between the two methods to access to the thread-safe variable.
出处
《工业控制计算机》
2011年第12期13-15,共3页
Industrial Control Computer