文件名称:ThreadSync
- 所属分类:
- 进程与线程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 48.03kb
- 下载次数:
- 0次
- 提 供 者:
- lu***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该应用程序运行后自动创建两个线程。线程1每50毫秒计数器加1,线程2每100毫秒计数器加1。只读编辑框中分别显示两个计数器的值。两个命令按钮分别控制线程1和线程2的挂起和恢复。“同步”复选框控制两线程的同步,当处于同步状态时,同一时刻只能有一个线程拥有信号量对象,当某一线程拥有信号量对象时,计数器加10,然后释放信号量对象。由于两线程优先级相同,因此,执行结果是每个线程计数器一次以10为步长增加。-run the application automatically creates two threads. Thread one every 50 milliseconds plus a counter, two threads per 100 milliseconds plus a counter. CD-editing box showed the two counter values. Orders were two control buttons and a thread of the two threads suspended and resumed. "Synchronized" check box control two threads simultaneously, in synchronization status, the same moment that only threads with a volume target signal, when the signal has a threaded target volume, an increase of 10 counters, before the release of signal volume targets. As the two threads, priority, therefore, the implementation of the outcome of each thread to counter a 10-step increase.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 27796721threadsync.rar 列表 ThreadSync\ThreadSync.vcproj ThreadSync\ThreadSync.rc ThreadSync\ThreadSync.ncb ThreadSync\ReadMe.txt ThreadSync\ThreadSync.h ThreadSync\ThreadSync.cpp ThreadSync\ThreadSyncDlg.h ThreadSync\ThreadSyncDlg.cpp ThreadSync\STDAFX.H ThreadSync\STDAFX.CPP ThreadSync\ThreadSync.aps ThreadSync\ThreadSync.sln ThreadSync\ThreadSync.suo ThreadSync\Resource.h ThreadSync\RES\ThreadSync.rc2 ThreadSync\RES\ThreadSync.manifest ThreadSync\RES\ThreadSync.ico ThreadSync\RES ThreadSync