摘要: 1. 图解 2. 代码示例 <1> 仓库类 1 public class StoreHouse { 2 private int cnt = 0; // 用于记录产品的数量 3 4 public synchronized void produceProduct() { 5 notify(); 6 if 阅读全文
posted @ 2021-06-21 14:07 Jasper2003 阅读(32) 评论(0) 推荐(0) 编辑