一、题目描述 1)手写生产者/消费者 二、解题思路 方案一):利用线程实现生产者/消费者,结合wait和notify。 三、注意事项 1) 四、代码实现 见我的github:生产者/消费者问题java实现