文件名称:08281018_ShenChaobo_lab02
介绍说明--下载内容均来自于网络,请自行研究使用
讨论临界区问题及其解决方案。实验首先创建两个共享数据资源的并发线程。在没有同步控制机制的情况下,实验过程中会发现某些异常现象。针对观察到的现象,请分别采用以下两套不同的解决方案:
(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
附