文件名称:EventSynch
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++]
- 上传时间:
- 2013-11-19
- 文件大小:
- 16kb
- 下载次数:
- 0次
- 提 供 者:
- 李*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VC++利用事件对象实现线程同步的问题,示例代码实现两大功能:1、不使用事件同步启动两个线程向编辑框中写入不同字符;对于没有使用同步对象时,可能出现输出字符比使用同步对象时少的现象,这是因为线程同时对资源进行操作的结果。2、使用事件同步启动两个线程向编辑框中写入不同字符。
-VC++ using the event object for thread synchronization problem, the sample code to achieve two major functions: 1, do not use the event to start two threads simultaneously write different character to the edit box for not using synchronization objects may occur output character than the use of synchronous the object less the phenomenon, which is due to threads result of the operation of resources. 2, using the event to start two threads simultaneously write different character to the edit box.
-VC++ using the event object for thread synchronization problem, the sample code to achieve two major functions: 1, do not use the event to start two threads simultaneously write different character to the edit box for not using synchronization objects may occur output character than the use of synchronous the object less the phenomenon, which is due to threads result of the operation of resources. 2, using the event to start two threads simultaneously write different character to the edit box.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(没有文件,原文件不完全或已损坏或有密码)