Description: 10 VC++ multi-threaded operation examples of source code, content involves how to safely terminate a thread, how to create a UI thread Worker thread, how to create, how to wait for the thread end, to suspend and resume the thread, how to get the thread exit code, how to use a mutex, how to use critical zone, how to use the semaphore etc., beginners should look, multi-threaded use is extensive, can improve the efficiency of procedures
To Search:
File list (Check if you may need any files):
如何安全终止线程\Demo\ReadMe.txt
................\....\Demo.h
................\....\DemoDlg.h
................\....\resource.h
................\....\StdAfx.h
................\....\Demo.cpp
................\....\DemoDlg.cpp
................\....\StdAfx.cpp
................\....\Demo.dsp
................\....\Demo.dsw
................\....\res\Demo.ico
................\....\...\Demo.rc2
................\....\Demo.plg
................\....\Demo.rc
....创建UI线程\Demo\ReadMe.txt
..............\....\Demo.h
..............\....\DemoDlg.h
..............\....\resource.h
..............\....\StdAfx.h
..............\....\ThreadDlg.h
..............\....\UIThread.h
..............\....\Demo.cpp
..............\....\DemoDlg.cpp
..............\....\StdAfx.cpp
..............\....\ThreadDlg.cpp
..............\....\UIThread.cpp
..............\....\Demo.dsp
..............\....\Demo.dsw
..............\....\res\Demo.ico
..............\....\...\Demo.rc2
..............\....\Demo.plg
..............\....\Demo.rc
........Worker线程\Demo\ReadMe.txt
..................\....\Demo.h
..................\....\DemoDlg.h
..................\....\resource.h
..................\....\StdAfx.h
..................\....\Demo.cpp
..................\....\DemoDlg.cpp
..................\....\StdAfx.cpp
..................\....\Demo.dsp
..................\....\Demo.dsw
..................\....\res\Demo.ico
..................\....\...\Demo.rc2
..................\....\Demo.plg
..................\....\Demo.rc
....等待线程结束\Demo\ReadMe.txt
................\....\Demo.h
................\....\DemoDlg.h
................\....\resource.h
................\....\StdAfx.h
................\....\Demo.cpp
................\....\DemoDlg.cpp
................\....\StdAfx.cpp
................\....\Demo.dsp
................\....\Demo.dsw
................\....\res\Demo.ico
................\....\...\Demo.rc2
................\....\Demo.plg
................\....\Demo.rc
....挂起和恢复线程\Demo\ReadMe.txt
..................\....\Demo.h
..................\....\DemoDlg.h
..................\....\resource.h
..................\....\StdAfx.h
..................\....\Demo.cpp
..................\....\DemoDlg.cpp
..................\....\StdAfx.cpp
..................\....\Demo.dsp
..................\....\Demo.dsw
..................\....\res\Demo.ico
..................\....\...\Demo.rc2
..................\....\Demo.plg
..................\....\Demo.rc
....获得线程的退出码\Demo\ReadMe.txt
....................\....\Demo.h
....................\....\DemoDlg.h
....................\....\MyThread1.h
....................\....\MyThread2.h
....................\....\resource.h
....................\....\StdAfx.h
....................\....\Demo.cpp
....................\....\DemoDlg.cpp
....................\....\MyThread1.cpp
....................\....\MyThread2.cpp
....................\....\StdAfx.cpp
....................\....\Demo.dsp
....................\....\Demo.dsw
....................\....\res\Demo.ico
....................\....\...\Demo.rc2
....................\....\Demo.plg
....................\....\Demo.rc
....使用互斥量\Demo\ReadMe.txt
..............\....\Demo.h
..............\....\DemoDlg.h
..............\....\resource.h
..............\....\StdAfx.h
..............\....\Demo.cpp
..............\....\DemoDlg.cpp
..............\....\StdAfx.cpp