一,Jdk线程的join()方法按需要执行的顺序依次加入即可,简单也比较常用publicclassTest{publicstaticvoidmain(String[]args){ThreadthreadAnewThread("A"){Overridepublicvoidrun(){try{Thread.sleep(2000);}catch(InterruptedExceptione){e.printStackTrace();}System.out.print("我是线程A执行");}};ThreadthreadBnewThread("B"){Overridepublicvoidrun(){try{Thread.sleep(2000);}catch(InterruptedExceptione){e.printStackT...