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

基于回调函数与Visual C++的多线程应用程序的实现
引用本文:王得利,马月坤.基于回调函数与Visual C++的多线程应用程序的实现[J].唐山学院学报,2006,19(2):106-108.
作者姓名:王得利  马月坤
作者单位:1. 唐山市人才交流中心,河北,唐山,063000
2. 河北理工大学,计算机与自动控制学院,河北,唐山,063009
摘    要:本文给出了基于回调函数的多线程应用程序实现方法。通过回调函数开辟子线程,而采用回调函数的消息响应函数实现具体的数据处理。因回调函数的消息响应函数可作为VC++某个类的成员函数,故可调用该类的其他成员函数和成员变量,从而避免了因采用过多的全局变量进行线程通信而降低系统效率。

关 键 词:回调函数  多线程  消息响应函数
文章编号:1672-349X(2006)02-0106-03
收稿时间:2005-12-25
修稿时间:2005年12月25

Realization of Multithread Program Based on Callback Function and Visual C++
WANG De-li,MA Yue-kun.Realization of Multithread Program Based on Callback Function and Visual C++[J].Journal of Tangshan College,2006,19(2):106-108.
Authors:WANG De-li  MA Yue-kun
Abstract:The method for realizing multithread 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.
Keywords:callback function  multithread  message response function  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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