多线程技术在破片参数测量系统中的应用  被引量:4

Application of Multithread Technology in Fragment's Parameter Measurement System

在线阅读下载全文

作  者:沈满德[1] 吴周桥[1] 李德骏[1] 

机构地区:[1]武汉科技学院电子信息工程学院,武汉430073

出  处:《弹箭与制导学报》2009年第5期119-122,共4页Journal of Projectiles,Rockets,Missiles and Guidance

基  金:湖北省教育厅重点项目(2001A29005)资助

摘  要:破片参数测量系统中,摄像机的定位造成了上位机CPU的空闲,降低了测量系统的实时性和测量效率。采用多线程技术能有效解决此问题。文中详细介绍了C++Builder中多线程技术的要点以及该技术在本系统中的实现方法。本系统共创建两条线程,第一线程(主线程)负责上位机与下位机之间的通信,第二线程负责图像处理。系统运行结果表明不采用多线程技术时单个破片测量时间为57s,而采用多线程技术时单个破片的测量时间为31s。由此可见,多线程技术能显著提高系统的实时性和测量效率。In fragment parameter measurement system, the upper machine's CPU leisure is caused by camera positioning, and the real-time and measurement efficiency of the measurement system are reduced greatly. The multithread technology can effectively solve this problem. The principle and implementation of multithread technique in C++ Builder were introduced. To meet the requirement of real-time, this system created two threads totally. The first thread (main thread) was responsible for communication between the upper machine and the lower machine, the second was responsible for image processing. The result shows that measuring time for single fragment is 31 seconds when multithread technique is adopted in the system, and the time is 57 seconds without multithread technique. Thus, multithread technology can greatly improve the real-time and measurement efficiency of the measurement system.

关 键 词:破片参数 多线程 线程同步 

分 类 号:TJ410.6[兵器科学与技术—火炮、自动武器与弹药工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象