Description: VC multi-threaded operating source code examples how to safely terminate a thread how to create a UI thread how to create a Worker thread to wait for the end of the thread to suspend and resume threads on how to obtain the exit code of how to use the thread mutex how to use the critical section how to use the event how to use the signal volume of this sample code, multi-threaded worry!
To Search:
File list (Check if you may need any files):
vcthreads\如何使用临界区\Demo\Demo.cpp
.........\..............\....\Demo.dsp
.........\..............\....\Demo.dsw
.........\..............\....\Demo.h
.........\..............\....\Demo.plg
.........\..............\....\Demo.rc
.........\..............\....\DemoDlg.cpp
.........\..............\....\DemoDlg.h
.........\..............\....\ReadMe.txt
.........\..............\....\res\Demo.ico
.........\..............\....\...\Demo.rc2
.........\..............\....\resource.h
.........\..............\....\StdAfx.cpp
.........\..............\....\StdAfx.h
.........\........事件\Demo\Demo.cpp
.........\............\....\Demo.dsp
.........\............\....\Demo.dsw
.........\............\....\Demo.h
.........\............\....\Demo.plg
.........\............\....\Demo.rc
.........\............\....\DemoDlg.cpp
.........\............\....\DemoDlg.h
.........\............\....\ReadMe.txt
.........\............\....\res\Demo.ico
.........\............\....\...\Demo.rc2
.........\............\....\resource.h
.........\............\....\StdAfx.cpp
.........\............\....\StdAfx.h
.........\........互斥量\Demo\Demo.cpp
.........\..............\....\Demo.dsp
.........\..............\....\Demo.dsw
.........\..............\....\Demo.h
.........\..............\....\Demo.plg
.........\..............\....\Demo.rc
.........\..............\....\DemoDlg.cpp
.........\..............\....\DemoDlg.h
.........\..............\....\ReadMe.txt
.........\..............\....\res\Demo.ico
.........\..............\....\...\Demo.rc2
.........\..............\....\resource.h
.........\..............\....\StdAfx.cpp
.........\..............\....\StdAfx.h
.........\........信号量\Demo\Demo.cpp
.........\..............\....\Demo.dsp
.........\..............\....\Demo.dsw
.........\..............\....\Demo.h
.........\..............\....\Demo.plg
.........\..............\....\Demo.rc
.........\..............\....\DemoDlg.cpp
.........\..............\....\DemoDlg.h
.........\..............\....\ReadMe.txt
.........\..............\....\res\Demo.ico
.........\..............\....\...\Demo.rc2
.........\..............\....\resource.h
.........\..............\....\StdAfx.cpp
.........\..............\....\StdAfx.h
.........\....创建UI线程\Demo\Demo.cpp
.........\..............\....\Demo.dsp
.........\..............\....\Demo.dsw
.........\..............\....\Demo.h
.........\..............\....\Demo.plg
.........\..............\....\Demo.rc
.........\..............\....\DemoDlg.cpp
.........\..............\....\DemoDlg.h
.........\..............\....\ReadMe.txt
.........\..............\....\res\Demo.ico
.........\..............\....\...\Demo.rc2
.........\..............\....\resource.h
.........\..............\....\StdAfx.cpp
.........\..............\....\StdAfx.h
.........\..............\....\ThreadDlg.cpp
.........\..............\....\ThreadDlg.h
.........\..............\....\UIThread.cpp
.........\..............\....\UIThread.h
.........\........Worker线程\Demo\Demo.cpp
.........\..................\....\Demo.dsp
.........\..................\....\Demo.dsw
.........\..................\....\Demo.h
.........\..................\....\Demo.plg
.........\..................\....\Demo.rc
.........\..................\....\DemoDlg.cpp
.........\..................\....\DemoDlg.h
.........\..................\....\ReadMe.txt
.........\..................\....\res\Demo.ico
.........\..................\....\...\Demo.rc2
.........\..................\....\resource.h
.........\..................\....\StdAfx.cpp
.........\..................\....\StdAfx.h
.........\....安全终止线程\Demo\Demo.cpp
.........\................\....\Demo.dsp
.........\................\....\Demo.dsw
.........\................\....\Demo.h
.........\................\....\Demo.plg
.........\................\....\Demo.rc
.........\................\....\DemoDlg.cpp
.........\................\....\DemoDlg.h
.........\................\....\ReadMe.txt
.........\................\....\res\Demo.ico
.........\................\....\...\Demo.rc2
.........\................\....\resource.h