文件名称:EventSynch
介绍说明--下载内容均来自于网络,请自行研究使用
VC++利用事件对象实现线程同步的问题,示例代码实现两大功能:1、不使用事件同步启动两个线程向编辑框中写入不同字符;对于没有使用同步对象时,可能出现输出字符比使用同步对象时少的现象,这是因为线程同时对资源进行操作的结果。2、使用事件同步启动两个线程向编辑框中写入不同字符。-VC++ using the event object implements thread synchronization problems, sample code to achieve two major functions: 1, do not use the event to start two threads write to synchronize different character to the edit box For when you do not use synchronization objects, characters than possible using synchronous output small object phenomenon because threads result of the operation to the resource. 2, using the event synchronization start two threads write different character to the edit box.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EventSynch\EventSynch.aps
..........\EventSynch.clw
..........\EventSynch.cpp
..........\EventSynch.dsp
..........\EventSynch.dsw
..........\EventSynch.h
..........\EventSynch.rc
..........\EventSynchDlg.cpp
..........\EventSynchDlg.h
..........\res\EventSynch.ico
..........\...\EventSynch.rc2
..........\resource.h
..........\StdAfx.cpp
..........\StdAfx.h
..........\res
EventSynch