摘要: 1.使用wait()/notifyAll实现生产者和消费者 1 /** 2 * 锁对象类 3 * 协作类 4 */ 5 public class MyQueue { 6 private Queue<Integer> queue; 7 private int limit; 8 9 public MyQ 阅读全文
posted @ 2020-07-18 12:10 思思博士 阅读(521) 评论(0) 推荐(0) 编辑