为什么Thread.sleep(50)休眠的就是舞台线程而不是其他的?
public void run(){ ArmyRunnable armySuiDynasty = new ArmyRunnable(); ArmyRunnable armyRevolt = new ArmyRunnable(); //使用Runnable接口创建线程 Thread armyOfSuiDynasty = new Thread(armySuiDynasty,"隋军"); Thread armyOfRevolt = new Thread(armyRevolt,"隋军"); //启动线程,让军队开始作战 armyOfSuiDynasty.start(); armyOfRevolt.start(); //舞台线程休眠,大家专心观看军队的弑杀 try { Thread.sleep(50); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } }