文件名称:semaphore
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- ti***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
信号量(Semaphore)也被称为信号灯,常常作为在多线程环境下的同步与互斥机制。它负责协调各个线程,以保证它们能够正确、合理的使用公共资源。信号量分为单值和多值两种。单值信号量只能被一个线程获得,而多值信号量可以被若干个线程获得。
本实验是一个信号量实验,父进程作为生产者释放信号量,子进程作为消费者申请信号量。
实验环境
Redhat9.0-Semaphore (Semaphore), also known as signal lights, often in multi-threaded environment as synchronization and mutual exclusion mechanism. It is responsible for coordinating the various threads in order to ensure that they can correct and reasonable use of public resources. Semaphore is divided into two kinds of single and multiple values. Single-valued semaphore can only be one thread access, and multi-valued semaphore can be a number of threads available. This experiment is a signal of experiments, the release of the parent process semaphore as producers, as consumers apply for the child process semaphore. Redhat9.0 experimental environment
本实验是一个信号量实验,父进程作为生产者释放信号量,子进程作为消费者申请信号量。
实验环境
Redhat9.0-Semaphore (Semaphore), also known as signal lights, often in multi-threaded environment as synchronization and mutual exclusion mechanism. It is responsible for coordinating the various threads in order to ensure that they can correct and reasonable use of public resources. Semaphore is divided into two kinds of single and multiple values. Single-valued semaphore can only be one thread access, and multi-valued semaphore can be a number of threads available. This experiment is a signal of experiments, the release of the parent process semaphore as producers, as consumers apply for the child process semaphore. Redhat9.0 experimental environment
(系统自动生成,下载前可以参看下载内容)
下载文件列表
semaphore.txt