摘要: 线程通信:交错打印 涉及到的方法: notify(); wait(); 必须是同步代码块,或者同步方法才可以使用 class number implements Runnable{ private int num=1; @Override public void run() { while (tru 阅读全文
posted @ 2020-11-04 21:49 兔兔1234 阅读(91) 评论(0) 推荐(0)