文件名称:The-operating-system-course-design-
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.98kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有一群生产者进程在生产产品,并将这些产品提供给消费者进程去消费。为使生产者进程与消费者进程能并发执行,在两者之间设置了一个具有n个缓冲区的缓冲池,生产者进程将它所生产的产品放入一个缓冲区中;消费者进程可从缓冲区中取走产品去消费。尽管所有的生产者进程和消费者进程都是以异步方式运行,但它们之间必须保持同步,即不允许消费者进程到一个空的缓冲区取产品,也不允许生产者进程向一个已装满产品且尚未取走的缓冲区投放产品。-A group of producers in the production process, product, and process these products available to consumers to spend. In order to process the producer and consumer processes to execute concurrently, set between the two n-buffer a buffer pool, the producer process will its products into a buffer consumer process can removed from the buffer to consume products. Although all producer processes and consumer processes are run asynchronously, but they must be maintained between the synchronization process that allowed consumers to take an empty buffer zone products, but also allow producers to a process has been installed full product and not yet removed the buffer serving products.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
101.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.