Java线程中的join是使用线程从异步执行变成同步执行。
join使用示例1:在一个线程中使用
MyThread thread = new MyThread();
thread.start();
thread.join();
Java线程中的join是使用线程从异步执行变成同步执行。
join使用示例1:在一个线程中使用
MyThread thread = new MyThread();
thread.start();
thread.join();