private boolean flag = true;
new Thread(new Runnable(){
public void run(){
while(flag){
try{
Thread.sleep(1000);
System.out.println("输出");
}catch(InterruptedException e){
}
}
}
}).start();
线程里面只有一个while循环,当while循环停止以后,这个线程是否还在运行?