检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《电子设计工程》2011年第1期4-7,11,共5页Electronic Design Engineering
基 金:西安市科技创新支撑计划项目(CXY1009-5);陕西省教育厅产业化培育项目(09JC16)
摘 要:为满足实时测井需求,提高系统资源的利用率和系统性能,在数控测井软件开发中将多线程编程技术应用其中,并对多线程编程技术应用的可行性和必要性进行了分析。给出了软件的模块框图及多线程间关系,利用MFC的自定义类封装和实现各个线程,在线程中分别实现串口通信、数据处理、实时绘图功能,采用事件、消息驱动的方式来调度同步线程。实验结果表明,数控测井软件在使用多线程编程技术后,比未使用多线程技术,提高了CPU 50%的使用效率,每秒处理的最大数据由15组提高到40组,对程序的实时性起到良好的作用。In order to satisfy the requirement of real-time logging, raise the uhiliazation rate of the resource and improve the performance of the system, multi-thread programming technology was used in the computerized well logging software. In this paper, we analyzed the necessity and feasibility of multi-thread programming technique, found the software module diagram and the relationship between the multi-thread, encapsulated and implemented each thread using general class of MFC, realized the function of serial port communication, data processing, real-time cartography separately in threads, used the event and message to dispatch the synchronize threads. The results show that the numerical control logging software with muhi-thread programming can raise the service efficiency of CPU by 50%, enhance the biggest processing data from 15 to 40 groups each second, which has good effect on the real-time of program.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.15