文件名称:producers-and-consumers
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 嘉**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
生产者消费者问题的具体实现要求:
(1)、至少提供3个生产者和3个消费者六个进程并发执行;
(2)、缓冲区单元至少为十个;
(3)、生产者进程的运行速度和消费者进程的运行速度可通过时间调整,目的便于查看当生产者进程比消费者进程快时缓冲区单元的变化情况,同样的,当消费者进程比生产者进程快时也能便于查看缓冲区单元内容的变化情况;
(4)、实时显示缓冲区单元内容的变化情况,并告知是哪一个进程的行为导致了缓冲区单元内容的变化。
-Producers and consumers on the specific implementation requirements:
(1), at least three producers and three consumers six concurrent process execution
(2), the buffer unit of at least ten
(3), the producer and consumer processes speed the process speed can be adjusted through time, as producers aim to facilitate the process of viewing the process faster than the consumer unit when the buffer changes, the same, when consumers process than Producers can also facilitate the process quickly view the contents of the buffer unit changes
(4), real-time display changes the contents of the buffer unit, and inform the behavior of a process which has led to changes in the contents of the buffer unit.
(1)、至少提供3个生产者和3个消费者六个进程并发执行;
(2)、缓冲区单元至少为十个;
(3)、生产者进程的运行速度和消费者进程的运行速度可通过时间调整,目的便于查看当生产者进程比消费者进程快时缓冲区单元的变化情况,同样的,当消费者进程比生产者进程快时也能便于查看缓冲区单元内容的变化情况;
(4)、实时显示缓冲区单元内容的变化情况,并告知是哪一个进程的行为导致了缓冲区单元内容的变化。
-Producers and consumers on the specific implementation requirements:
(1), at least three producers and three consumers six concurrent process execution
(2), the buffer unit of at least ten
(3), the producer and consumer processes speed the process speed can be adjusted through time, as producers aim to facilitate the process of viewing the process faster than the consumer unit when the buffer changes, the same, when consumers process than Producers can also facilitate the process quickly view the contents of the buffer unit changes
(4), real-time display changes the contents of the buffer unit, and inform the behavior of a process which has led to changes in the contents of the buffer unit.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
生产者与消费者.c