例 11-6
public class xyz implements Runnable{
public void run(){
while(true){
…… //执行线程的主要操作
if (time_to_die){
Thread.currentThread().stop();
}
}
}
}