黑马程序员技术交流社区
标题:
多线程 start方法源码问题
[打印本页]
作者:
于海龙
时间:
2013-5-2 09:45
标题:
多线程 start方法源码问题
本帖最后由 于海龙 于 2013-5-2 16:35 编辑
求注释, 像 threadStatus 是什么意思
public synchronized void start() {
if (threadStatus != 0)
throw new IllegalThreadStateException();
group.add(this);
boolean started = false;
try {
start0();
started = true;
} finally {
try {
if (!started) {
group.threadStartFailed(this);
}
} catch (Throwable ignore) {
}
}
}
private native void start0();
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2