boolean flag=true; public void run(){ while(flag){ ....... } } 上面是线程中的run方法,不干预则一直在线程循环中 中止只须要在外部改变flag=false,线程就天然终止了spa