java多線程中join方法裏究竟是強調「暫停」仍是「強制」

直接上代碼 子線程A package ThreadDemo; public class MyRunnable1 implements Runnable{ public void run() { //以循環輸出1-10 爲例 for (int i = 1; i <= 10; i++) { System.out.println("當前線程:("+Thread.currentThread
相關文章
相關標籤/搜索