摘要: 1.线程交替输出 1.1:核心原理,synchronized + notify+ wait。 先notify 后 wait。1.2:代码class process extends Thread{ //field A a = null; Thread other = null; public void 阅读全文
posted @ 2022-05-13 17:22 星辉与你 阅读(21) 评论(0) 推荐(0)