首页 | 本学科首页   官方微博 | 高级检索  
     

多线程编程技术在数控测井软件中的应用
引用本文:杨永,高嵩,陈超波,何宁.多线程编程技术在数控测井软件中的应用[J].电子设计工程,2011,19(1):4-7,11.
作者姓名:杨永  高嵩  陈超波  何宁
作者单位:西安工业大学电信学院,陕西,西安,710032
基金项目:西安市科技创新支撑计划项目,陕西省教育厅产业化培育项目
摘    要:为满足实时测井需求,提高系统资源的利用率和系统性能,在数控测井软件开发中将多线程编程技术应用其中,并对多线程编程技术应用的可行性和必要性进行了分析。给出了软件的模块框图及多线程间关系,利用MFC的自定义类封装和实现各个线程,在线程中分别实现串口通信、数据处理、实时绘图功能,采用事件、消息驱动的方式来调度同步线程。实验结果表明,数控测井软件在使用多线程编程技术后,比未使用多线程技术,提高了CPU 50%的使用效率,每秒处理的最大数据由15组提高到40组,对程序的实时性起到良好的作用。

关 键 词:实时  多线程  串口通信  数据处理

Applications of multi-thread programming in computerized well logging software
YANG Yong,GAO Song,CHEN Chao-bo,HE Ning.Applications of multi-thread programming in computerized well logging software[J].Electronic Design Engineering,2011,19(1):4-7,11.
Authors:YANG Yong  GAO Song  CHEN Chao-bo  HE Ning
Affiliation:(School of Electronics &Information,Xi’an Technological Univercity,Xi’an 710021,China)
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.
Keywords:real-time  multi-thread  serial communication  data processing
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号