文件名称:ProducerConsumer
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2014-11-04
- 文件大小:
- 7.05mb
- 下载次数:
- 0次
- 提 供 者:
- 符*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
生产者消费者问题(英语:Producer-consumer problem),也称有限缓冲问题(英语:Bounded-buffer problem),是一个多线程同步问题的经典案例。该问题描述了两个共享固定大小缓冲区的线程——即所谓的“生产者”和“消费者”——在实际运行时会发生的问题。生产者的主要作用是生成一定量的数据放到缓冲区中,然后重复此过程。与此同时,消费者也在缓冲区消耗这些数据。该问题的关键就是要保证生产者不会在缓冲区满时加入数据,消费者也不会在缓冲区中空时消耗数据。-Producers and consumers (English: Producer-consumer problem), also known as finite buffer problems (English: Bounded-buffer problem), is a classic case of multi-threaded synchronization problems. The problem described two threads share a fixed size buffer- the so-called " producers" and " consumers" - in the actual run-time problems occur. The main role of the producer is to generate a certain amount of data into the buffer, and then repeat the process. At the same time, consumers are consuming the data buffer. The key to this problem is to ensure that producers will not join the data in the buffer is full, the consumer does not consume the data in the buffer is hollow.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ProducerConsumer\Debug\ProducerConsumer.exe
................\.....\ProducerConsumer.ilk
................\.....\ProducerConsumer.pdb
................\ProducerConsumer\Debug\CL.read.1.tlog
................\................\.....\CL.write.1.tlog
................\................\.....\link-cvtres.read.1.tlog
................\................\.....\link-cvtres.write.1.tlog
................\................\.....\link-rc.read.1.tlog
................\................\.....\link-rc.write.1.tlog
................\................\.....\link.14464-cvtres.read.1.tlog
................\................\.....\link.14464-cvtres.write.1.tlog
................\................\.....\link.14464-rc.read.1.tlog
................\................\.....\link.14464-rc.write.1.tlog
................\................\.....\link.14464.read.1.tlog
................\................\.....\link.14464.write.1.tlog
................\................\.....\link.16660-cvtres.read.1.tlog
................\................\.....\link.16660-cvtres.write.1.tlog
................\................\.....\link.16660-rc.read.1.tlog
................\................\.....\link.16660-rc.write.1.tlog
................\................\.....\link.16660.read.1.tlog
................\................\.....\link.16660.write.1.tlog
................\................\.....\link.17164-cvtres.read.1.tlog
................\................\.....\link.17164-cvtres.write.1.tlog
................\................\.....\link.17164-rc.read.1.tlog
................\................\.....\link.17164-rc.write.1.tlog
................\................\.....\link.17164.read.1.tlog
................\................\.....\link.17164.write.1.tlog
................\................\.....\link.17480-cvtres.read.1.tlog
................\................\.....\link.17480-cvtres.write.1.tlog
................\................\.....\link.17480-rc.read.1.tlog
................\................\.....\link.17480-rc.write.1.tlog
................\................\.....\link.17480.read.1.tlog
................\................\.....\link.17480.write.1.tlog
................\................\.....\link.18404-cvtres.read.1.tlog
................\................\.....\link.18404-cvtres.write.1.tlog
................\................\.....\link.18404-rc.read.1.tlog
................\................\.....\link.18404-rc.write.1.tlog
................\................\.....\link.18404.read.1.tlog
................\................\.....\link.18404.write.1.tlog
................\................\.....\link.7184-cvtres.read.1.tlog
................\................\.....\link.7184-cvtres.write.1.tlog
................\................\.....\link.7184-rc.read.1.tlog
................\................\.....\link.7184-rc.write.1.tlog
................\................\.....\link.7184.read.1.tlog
................\................\.....\link.7184.write.1.tlog
................\................\.....\link.read.1.tlog
................\................\.....\link.write.1.tlog
................\................\.....\ProducerConsumer.lastbuildstate
................\................\.....\ProducerConsumer.log
................\................\.....\ProducerConsumer.obj
................\................\.....\vc110.idb
................\................\.....\vc110.pdb
................\................\ProducerConsumer.cpp
................\................\ProducerConsumer.vcxproj
................\................\ProducerConsumer.vcxproj.filters
................\ProducerConsumer.sdf
................\ProducerConsumer.sln
................\ProducerConsumer.v11.suo
................\................\Debug
................\Debug
................\ProducerConsumer
ProducerConsumer