文件名称:2
介绍说明--下载内容均来自于网络,请自行研究使用
本实验设计在同一个进程地址空间内执行的七个线程。三个生产者线程四个消费者线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。生产者线程生产物品时,若无空缓冲区可用,生产者线程必须等待消费者线程释放出一个空缓冲区;消费者线程消费物品时,若无满的缓冲区,消费者线程将被阻塞,直到新的物品被生产出来。-The experimental design in the same process address space implementation of the seven threads. Three producers, four consumer threads thread. Producer thread producing items, then items placed in an empty buffer for the consumer thread consumption. Consumer thread to get items from the buffer, and then release the buffer. Producer thread producing items, if not empty buffer is available, the producer thread must wait for the release of a consumer thread empty buffer consumer thread consumer goods, the absence of the buffer is full, the consumer thread will be blocked until the new items were produced.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验二-生产者与消费者\d_random.h
.....................\pv.cpp
.....................\~$二 生产者与消费者实验报告.doc
实验二-生产者与消费者
.....................\pv.cpp
.....................\~$二 生产者与消费者实验报告.doc
实验二-生产者与消费者