join public final void join() throws InterruptedException Waits for this thread to die. Throws: InterruptedException - if another thread has interrupted the ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ current thread. The interrupted status of the current thread ~~~~~~~~~~~~~~ is cleared when this exception is thrown.
public final void join()
throws InterruptedException
Waits for this thread to die.
Throws:
InterruptedException - if another thread has interrupted the
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
current thread. The interrupted status of the current thread
~~~~~~~~~~~~~~
is cleared when this exception is thrown.
我想问的是这个join到底有什么用,比如说等待线程死亡是怎么等待的,是不是到这个地方程序就不向下走了?
今天我的例题没拿来,改天我写上一个程序上去还请你多多指点。