文件名称:The-operating-system-course-design-
介绍说明--下载内容均来自于网络,请自行研究使用
有一群生产者进程在生产产品,并将这些产品提供给消费者进程去消费。为使生产者进程与消费者进程能并发执行,在两者之间设置了一个具有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