C# - Thread.Join()

来源:互联网 发布:淘宝的大拿韩代敢买吗 编辑:程序博客网 时间:2024/06/05 07:44

Blocks the calling thread until a thread terminates, while continuing to perform standard COM andSendMessage pumping.

Join is a synchronization method that blocks the calling thread (that is, the thread that calls the method) until the thread whose Join method is called has completed. Use this method to ensure that a thread has been terminated. The caller will block indefinitely if the thread does not terminate.

If the thread has already terminated when Join is called, the method returns immediately.


21 0
原创粉丝点击