Description: 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.
To Search:
File list (Check if you may need any files):
多线程\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
......\....\