Description: In this study, to design a process address space in the same execute two threads. Producer thread production product, and then place the product in an empty buffer in the thread consumption for consumers. Consumer thread to get the product from the buffer, and then release the buffer. When the producer thread production product, if the buffer is full, then the producer thread must wait for the release of the consumer thread to an empty buffer. When the consumer thread consumer products, if the buffer is empty, then the consumer thread will be blocked until the new products are produced.
To Search:
File list (Check if you may need any files):
生产者消费者\实验运行说明.txt
............\生产者消费者问题\Debug\vc60.pdb
............\................\.....\生产者消费者问题.exe
............\................\.....\生产者消费者问题.obj
............\................\.....\生产者消费者问题.pdb
............\................\生产者消费者问题.cpp
............\................\生产者消费者问题.dsp
............\................\生产者消费者问题.dsw
............\................\生产者消费者问题.ncb
............\................\生产者消费者问题.opt
............\................\生产者消费者问题.plg
............\生产者消费者问题实验报告.doc
............\................\Debug
............\生产者消费者问题
生产者消费者