1.重复启动
Thread thread = new Thread(){
public void run(){
sleep(1);
}
};
thread.start();
thread.start();
2.一个线程生命周期结束,再次调用start是不被允许的。即Terminated不能回到Runnable状态
Thread thread = new Thread(){
public void run(){
sleep(1);
}
};
thread.start();
sleep(2);
thread.start();