1. 问题:很好奇为什么叫Join?

参考:

  1. https://blog.csdn.net/frankarmstrong/article/details/55504161
  2. https://stackoverflow.com/questions/15956231/what-does-this-thread-join-code-mean
  3. https://stackoverflow.com/questions/9366264/what-does-it-mean-to-join-a-thread
  4. https://en.wikipedia.org/wiki/Fork–join_model
  5. http://www.infoq.com/cn/articles/fork-join-introduction

2. 答案:就是一个线程(调用者)等待这个线程(调用了Join方法)的完成(正常或异常)。

2.1 The thread(一般是主线程main thread)calls t1.join() to wait for the t1 thread to finish.
2.2 就像是对t1说, "Come on, Join us!"

相关文章:

  • 2022-01-22
  • 2022-12-23
  • 2021-09-12
  • 2021-07-02
  • 2021-11-28
  • 2021-06-13
猜你喜欢
  • 2022-02-20
  • 2021-07-01
  • 2021-10-04
  • 2021-06-04
  • 2022-12-23
  • 2021-10-06
  • 2021-07-16
相关资源
相似解决方案