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
相关文章
相关标签/搜索