最新回答 / 我一个不小心
舞台的
Thread.sleep(50);休眠结束之后,执行的
armyTaskOfSuiDynasty.keepRunning = false; armyTaskOfRevolt.keepRunning = false;来结束对打
volatile boolean keepRunning = true;要加 volatile。
2019-03-27
已采纳回答 / 精慕门0548516
Thread thread = new Thread();Thread thread = new Thread(String name);Thread thread = new Thread(Runnable runnable);Thread thread = new Thread(Runnable runnable, String name);入参name可以通过Thread.currentThread.getName()获得
2019-02-28