Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Process-Thread
Title: Mutex_Critical Download
 Description: The examples of using multiple threads to use a different sorting algorithm to sort the data, for each thread use a different algorithm. The main thread, use the quick sort QuickSort, the other four algorithms were the establishment of four sub-thread, thread in the sub-sort. Because each thread must call the function PrintResult the output to the monitor, so that different threads will compete for the output to the monitor, so that different threads of the output will be mixed together, so it must thread one by one output. That is, must be mutually exclusive control PrintResult System. Should be mutually exclusive control, you must use Event, Mutex, CrititicalSection, Semaphore and other exclusive control of the amount. This example can use the Event, Mutex, CrititicalSection, you can modify the code prompted a mutex using one volume of testing. I do not use examples written MFC, SDK are used in the WINAPI, if slightly different when using MFC, but the principle is the same. And MFC
 Downloaders recently: [More information of uploader chenzifeng20]
 To Search:
File list (Check if you may need any files):
互斥类\mutex.cpp
......\调用方法.txt
sequence\sequence\Debug\sequence.exe
........\........\.....\sequence.ilk
........\........\.....\sequence.obj
........\........\.....\sequence.pch
........\........\.....\sequence.pdb
........\........\.....\StdAfx.obj
........\........\.....\vc60.idb
........\........\.....\vc60.pdb
........\........\sequence.cpp
........\........\sequence.dsp
........\........\sequence.dsw
........\........\sequence.ncb
........\........\sequence.opt
........\........\sequence.plg
........\........\StdAfx.cpp
........\........\StdAfx.h
临界区的互斥控制 - VC知识库文章_files\ads.htm
.....................................\ads_002.htm
.....................................\....data\imgad.png
.....................................\........_002\abg-zh-CN-100c-000000.png
.....................................\doc2.gif
.....................................\dotline2.gif
.....................................\earch.gif
.....................................\expansion_embed.js
.....................................\go.gif
.....................................\pic.gif
.....................................\rec1.gif
.....................................\show_ads.js
.....................................\stat.gif
.....................................\stat.htm
.....................................\style.css
.....................................\test_domain.js
.....................................\toplogo.gif
.....................................\uipower.htm
.....................................\......._data\vcads1.swf
.....................................\vckcom.gif
sequence.zip
临界区的互斥控制 - VC知识库文章.htm
sequence\sequence\Debug
........\sequence
临界区的互斥控制 - VC知识库文章_files\ads_data
.....................................\ads_data_002
.....................................\uipower_data
互斥类
sequence
临界区的互斥控制 - VC知识库文章_files
    

CodeBus www.codebus.net