基于回调函数与Visual C++的多线程应用程序的实现  被引量:1

Realization of Multithread Program Based on Callback Function and Visual C++

在线阅读下载全文

作  者:王得利[1] 马月坤[2] 

机构地区:[1]唐山市人才交流中心,河北唐山063000 [2]河北理工大学计算机与自动控制学院,河北唐山063009

出  处:《唐山学院学报》2006年第2期106-108,共3页Journal of Tangshan University

摘  要:本文给出了基于回调函数的多线程应用程序实现方法。通过回调函数开辟子线程,而采用回调函数的消息响应函数实现具体的数据处理。因回调函数的消息响应函数可作为VC++某个类的成员函数,故可调用该类的其他成员函数和成员变量,从而避免了因采用过多的全局变量进行线程通信而降低系统效率。The method for realizing muhithread program based on callback function and Visual c++ is given in this paper. With callback function, subthread is created and data are processed in message response function of callback function. Because message response function of callback function can be a member function of a class such as View class, it is able to use member functions and member variables to avoid lowering the efficiency of the system with the use of many global variables.

关 键 词:回调函数 多线程 消息响应函数 

分 类 号:TP317[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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