Java多线程机制 历些毛子种枝大” XIDIAN UNIVERSITY ■方法一(继承Thread,续) class Thread_Tester 关键字 注释 public static void main(String args[) { testThread t1=new testThread(“线程t1"); testThread t2=new testThread(“线程t2"); t1.start(); t2.start(); }//main ends }//class ends Java多线程机制 ◼ 方法一(继承Thread,续) class Thread_Tester { public static void main(String args[]) { testThread t1=new testThread(“线程t1"); testThread t2=new testThread(“线程t2"); t1.start(); t2.start(); } //main ends } //class ends 关键字 注释