文件名称:InBuffer
介绍说明--下载内容均来自于网络,请自行研究使用
在同一个进程地址空间内执行的两个线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出来。-Two threads of execution within the same process address space. Producer thread production items, then items placed in an empty buffer for the consumer thread consumption. Consumer thread from the buffer items, and then release the buffer. When the producer thread producing goods, if there is no empty buffer is available, then the producer thread must wait for the consumer thread to release an empty buffer. When the consumer thread consumer goods, if not a full buffer, then the consumer thread will be blocked until the new items have been produced.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
代码.txt