文件名称:08281018_ShenChaobo_lab02
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:98.51kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
讨论临界区问题及其解决方案。实验首先创建两个共享数据资源的并发线程。在没有同步控制机制的情况下,实验过程中会发现某些异常现象。针对观察到的现象,请分别采用以下两套不同的解决方案:
(1) 利用Windows操作系统提供的mutex机制。
(2) 采用软件方案。
最后请比较这两种方案的性能优劣。
-Discuss problems and solutions critical region. Experiment first to share data resources to create two concurrent threads. Synchronous control mechanism in the absence of circumstances during the experiment will find some of the anomalies. For the observed phenomena, please use the following two sets are different solutions: (1) the use of Windows operating system provides the mutex mechanism. (2) using the software program. Finally, compare the advantages and disadvantages of both the performance of the program.
(1) 利用Windows操作系统提供的mutex机制。
(2) 采用软件方案。
最后请比较这两种方案的性能优劣。
-Discuss problems and solutions critical region. Experiment first to share data resources to create two concurrent threads. Synchronous control mechanism in the absence of circumstances during the experiment will find some of the anomalies. For the observed phenomena, please use the following two sets are different solutions: (1) the use of Windows operating system provides the mutex mechanism. (2) using the software program. Finally, compare the advantages and disadvantages of both the performance of the program.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
附/list.cpp
附/listmutex.cpp
附/listmutextime.cpp
附/listsoft.cpp
附/listsofttime.cpp
08281018_ShenChaobo_lab02.docx
附
附/listmutex.cpp
附/listmutextime.cpp
附/listsoft.cpp
附/listsofttime.cpp
08281018_ShenChaobo_lab02.docx
附
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.