java有父线程子线程这样的说法么?
2 回答

qq_笑_17
TA贡献1818条经验 获得超7个赞
有的,main就是父线程,Thread t就是子线程
public static void main(String[] args) throws InterruptedException
{
Thread t = new Test1();
t.start();
Thread.sleep(5000);
System.out.println("Main End");
}
添加回答
举报
0/150
提交
取消