摘要
随着测控系统综合化程度的不断提高,对软件性能的要求也日趋增强,使用多线程并发的方式能够更有效地利用多核CPU的特性,达到更好的效果。针对传统直接操纵操作系统级别线程的方法,介绍了使用Task来对线程进行抽象,以避免多线程的复杂操作以及更高效复用已存在线程,以构建性能良好、可伸缩、响应灵敏的测控系统应用软件。
With the improvement of the integration in measurement and control system,the requirement of software performance becomes higher and higher.The concurrency usage of multithreading can take advantage of multi-core CPU more effectively.Relative to the traditional method in which the operating-system-level thread is directly manipulated,this paper utilizes Task for abstracting the thread,so as to avoid complex operation of multithreading and reuse existing threads more effectively.For this,the application software with the high-performance is contributed to the flexible and responsive measurement and control system.
作者
王越
夏京川
祁正兴
陆小龙
WANG Yue;XIA Jingchuan;QI Zhengxing;LU Xiaolong(College of Manufacturing Science and Engineering,Sichuan University,Chengdu 610065,China)
出处
《机械制造与自动化》
2018年第5期118-120,163,共4页
Machine Building & Automation
关键词
测控系统
软件设计
多线程
并发
measurement and control system
software design
multithread
concurrency