导航

线程中的join使用

Posted on 2014-06-22 22:25  酷鱼影子  阅读(121)  评论(0编辑  收藏  举报

    Java线程中的join是使用线程从异步执行变成同步执行。

join使用示例1:在一个线程中使用

MyThread thread = new MyThread();
        thread.start();
	thread.join();