×

数控测井软件中的多线程编程技术

消耗积分:5 | 格式:rar | 大小:1.1 MB | 2011-01-14

分享资料个

为满足实时测井需求,提高系统资源的利用率和系统性能,在数控测井软件开发中将多线程编程技术应用其中,并对多线程编程技术应用的可行性和必要性进行了分析。给出了软件的模块框图及多线程间关系,利用MFC的自定义类封装和实现各个线程,在线程中分别实现串口通信、数据处理、实时绘图功能,采用事件、消息驱动的方式来调度同步线程。实验结果表明,数控测井软件在使用多线程编程技术后,比未使用多线程技术,提高了CPU 50%的使用效率,每秒处理的最大数据由15组提高到40组,对程序的实时性起到良好的作用。

Abstract:
 In order to satisfy the requirement of real-time logging, raise the ultiliazation 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 multi-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.

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !