Thread.join()的真正含義

首先, Thread.join() 並無將線程合併起來~ 任何疑惑都先從Java Doc開始, web stackoverflow上有個極好的例子: 1. After the main thread creates and starts the t1 and t2 threads. There are 3 threads running in parallel: main, t1, t2 2, T
相關文章
相關標籤/搜索