随便试试public class b extends Thread {
b(){
super();
}
public void run() {
System.out.println("start");
while (true){;}
}
}
public class a{
public static void main(String[] args) {
b t = new b();
System.out.println("init");
t.start();//改成run方法就不会往下走了,这是普通的函数调用
System.out.println("do otherthing");
}
}