多线程同步:事件(event)

时间:2015-10-04 08:18:20
【文件属性】:
文件名称:多线程同步:事件(event)
文件大小:44KB
文件格式:RAR
更新时间:2015-10-04 08:18:20
多线程同步 事件 本程序在多线程中使用事件实现资源访问同步,依次访问操作threadRun02中变量i的值和threadRun01中变量i的值。实现了通过通知操作的方式来保持线程访问资源顺序。
【文件预览】:
testThread
----testThread()
--------stdafx.cpp(141B)
--------res()
--------stdafx.h(2KB)
--------testThread.vcproj(5KB)
--------testThread.vcproj.PCOS-01010149.Administrator.user(1KB)
--------targetver.h(1KB)
--------testThread.vcproj.PCOS-01010149.Administrator219.user(1KB)
--------testThreadDlg.cpp(4KB)
--------testThreadDlg.h(801B)
--------testThread.rc(5KB)
--------resource.h(728B)
--------testThread.cpp(2KB)
--------testThread.h(465B)
--------testThread.aps(57KB)
--------ReadMe.txt(3KB)
----说明.txt(150B)
----testThread.suo(16KB)
----testThread.sln(896B)

网友评论

  • 对于初学者阅读起来有一定难度,最好可以添加多一些注解。