文件名称:MultiThread
- 所属分类:
- 进程与线程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-12-21
- 文件大小:
- 106kb
- 下载次数:
- 0次
- 提 供 者:
- K***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
如果我们在一个MFC对话框程序里面,点击一个执行延时10秒的按钮,那么在这10秒延时过程中,对话框程序将无法做其他的事,不响应其他的消息,那么它就是一个单线程的程序,因为它本身就拥有一个主线程,主线程处于工作状态,将无法响应其他的消息。
因此,为了让程序更好的处理一些耗时的操作,所以将一些耗时的,并且不直接表现在界面上的一些工作,另开一个线程去操作,因此在这里有必要学习——多线程编程。-If we are in an MFC dialog program inside, click on a button to perform a delay of 10 seconds to 10 seconds delay process, the dialog box procedure will not be able to do other things, do not respond to other messages, it is a single-threaded program, because it itself has a main thread, the main thread is in working condition, will not be able to respond to other messages. Therefore, in order to allow the program to better deal with some time-consuming operation, time-consuming, and not directly to the performance of some of the work on the interface, open a separate thread to operate, so here it is necessary to learn- multi-threaded programming.
因此,为了让程序更好的处理一些耗时的操作,所以将一些耗时的,并且不直接表现在界面上的一些工作,另开一个线程去操作,因此在这里有必要学习——多线程编程。-If we are in an MFC dialog program inside, click on a button to perform a delay of 10 seconds to 10 seconds delay process, the dialog box procedure will not be able to do other things, do not respond to other messages, it is a single-threaded program, because it itself has a main thread, the main thread is in working condition, will not be able to respond to other messages. Therefore, in order to allow the program to better deal with some time-consuming operation, time-consuming, and not directly to the performance of some of the work on the interface, open a separate thread to operate, so here it is necessary to learn- multi-threaded programming.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
多线程\DEMO\Demo说明.txt
......\....\MultiThread\FirstMultiThread\FirstMultiThread.aps
......\....\...........\................\FirstMultiThread.clw
......\....\...........\................\FirstMultiThread.cpp
......\....\...........\................\FirstMultiThread.dsp
......\....\...........\................\FirstMultiThread.dsw
......\....\...........\................\FirstMultiThread.h
......\....\...........\................\FirstMultiThread.ncb
......\....\...........\................\FirstMultiThread.opt
......\....\...........\................\FirstMultiThread.plg
......\....\...........\................\FirstMultiThread.rc
......\....\...........\................\FirstMultiThreadDlg.cpp
......\....\...........\................\FirstMultiThreadDlg.h
......\....\...........\................\ReadMe.txt
......\....\...........\................\res\FirstMultiThread.ico
......\....\...........\................\...\FirstMultiThread.rc2
......\....\...........\................\resource.h
......\....\...........\................\StdAfx.cpp
......\....\...........\................\StdAfx.h
......\....\...........\.ourthMultiThread\FourthMultiThread.aps
......\....\...........\.................\FourthMultiThread.clw
......\....\...........\.................\FourthMultiThread.cpp
......\....\...........\.................\FourthMultiThread.dsp
......\....\...........\.................\FourthMultiThread.h
......\....\...........\.................\FourthMultiThread.plg
......\....\...........\.................\FourthMultiThread.rc
......\....\...........\.................\FourthMultiThreadDlg.cpp
......\....\...........\.................\FourthMultiThreadDlg.h
......\....\...........\.................\ReadMe.txt
......\....\...........\.................\res\FourthMultiThread.ico
......\....\...........\.................\...\FourthMultiThread.rc2
......\....\...........\.................\resource.h
......\....\...........\.................\StdAfx.cpp
......\....\...........\.................\StdAfx.h
......\....\...........\MultiThread.dsw
......\....\...........\MultiThread.ncb
......\....\...........\MultiThread.opt
......\....\...........\SecondMultiThread\ReadMe.txt
......\....\...........\.................\res\SecondMultiThread.ico
......\....\...........\.................\...\SecondMultiThread.rc2
......\....\...........\.................\resource.h
......\....\...........\.................\SecondMultiThread.aps
......\....\...........\.................\SecondMultiThread.clw
......\....\...........\.................\SecondMultiThread.cpp
......\....\...........\.................\SecondMultiThread.dsp
......\....\...........\.................\SecondMultiThread.h
......\....\...........\.................\SecondMultiThread.plg
......\....\...........\.................\SecondMultiThread.rc
......\....\...........\.................\SecondMultiThreadDlg.cpp
......\....\...........\.................\SecondMultiThreadDlg.h
......\....\...........\.................\StdAfx.cpp
......\....\...........\.................\StdAfx.h
......\....\...........\ThirdMultiThread\ReadMe.txt
......\....\...........\................\res\ThirdMultiThread.ico
......\....\...........\................\...\ThirdMultiThread.rc2
......\....\...........\................\resource.h
......\....\...........\................\StdAfx.cpp
......\....\...........\................\StdAfx.h
......\....\...........\................\ThirdMultiThread.aps
......\....\...........\................\ThirdMultiThread.clw
......\....\...........\................\ThirdMultiThread.cpp
......\....\...........\................\ThirdMultiThread.dsp
......\....\...........\................\ThirdMultiThread.h
......\....\...........\................\ThirdMultiThread.plg
......\....\...........\................\ThirdMultiThread.rc
......\....\...........\................\ThirdMultiThreadDlg.cpp
......\....\...........\................\ThirdMultiThreadDlg.h
......\多线程.txt
......\DEMO\MultiThread\FirstMultiThread\res
......\....\...........\.ourthMultiThread\res
......\....\