文件名称:mutex
介绍说明--下载内容均来自于网络,请自行研究使用
本实验讨论临界区问题及其解决方案。实验首先创建两个共享数据资
源的并发线程。在没有同步控制机制的情况下,我们将看到某些异常现象。
针对观察到的现象,本实验采用两套解决方案:
• 利用Windows 的mutex 机制
• 采用软件方案
然后比较这两种方案的性能优劣。-In this study, discuss problems and solutions critical region. Experiment first create two shared data resources concurrent threads. In the absence of synchronization control mechanism, we will see some of the anomalies. For the observed phenomena, the present study, two solutions: • • The use of mutex mechanism for Windows using software programs and then compare the performance of the pros and cons of these two programs.
源的并发线程。在没有同步控制机制的情况下,我们将看到某些异常现象。
针对观察到的现象,本实验采用两套解决方案:
• 利用Windows 的mutex 机制
• 采用软件方案
然后比较这两种方案的性能优劣。-In this study, discuss problems and solutions critical region. Experiment first create two shared data resources concurrent threads. In the absence of synchronization control mechanism, we will see some of the anomalies. For the observed phenomena, the present study, two solutions: • • The use of mutex mechanism for Windows using software programs and then compare the performance of the pros and cons of these two programs.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mutex.cpp