文件名称:thread
介绍说明--下载内容均来自于网络,请自行研究使用
生产者,消费者线程并发进行,生产者发现缓冲区满了则唤醒消费者,自己睡眠。消费者发现缓冲区空了,唤醒生产者,自己睡眠。-The producer, the consumer thread, producers have found that the buffer is full, wake up the consumers, their sleep. Consumers find the buffer is empty, awaken the producers, their sleep.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
生产者—消费者\Consumer.java
..............\MyThread.java
..............\Producer.java
..............\PublicStack.java
生产者—消费者