怎么判断一个线程是否运行完毕?
怎么判断一个线程是否运行完毕?完毕后是手动结束线程,还是线程自己会销毁? 问题点数:40、回复次数:1Top
1 楼interpb(曾曾胡,深怕情多累美人!)回复于 2006-03-21 12:04:01 得分 40
getState()//返回线程状态
Returns the state of this thread. This method is designed for use in monitoring of the system state, not for synchronization control.
线程就是一段程序的执行,这个JVM会帮你管理
Top




