文件名称:EventSynch
介绍说明--下载内容均来自于网络,请自行研究使用
VC++利用事件对象实现线程同步的问题,示例代码实现两大功能:1、不使用事件同步启动两个线程向编辑框中写入不同字符;对于没有使用同步对象时,可能出现输出字符比使用同步对象时少的现象,这是因为线程同时对资源进行操作的结果。2、使用事件同步启动两个线程向编辑框中写入不同字符,VC++编程学习源码,很好的参考资料。-VC++ use the event object implements the thread synchronization, sample code to achieve two major functions: 1, do not use the event synchronization start two threads to different character to the edit box for without the use of synchronization object, possible output characters than the synchronization object is used less phenomenon, this is because the threads operate on the resources at the same time results. 2, the use of event synchronization start two threads to different character to the edit box, learning VC++ programming source code, a good reference.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EventSynch.aps
EventSynch.clw
EventSynch.cpp
EventSynch.dsp
EventSynch.dsw
EventSynch.h
EventSynch.rc
EventSynchDlg.cpp
EventSynchDlg.h
res
resource.h
...\EventSynch.ico
...\EventSynch.rc2
StdAfx.cpp
StdAfx.h