Making a thread Foreground VS Thread.Join()

后端 未结 2 1974
心在旅途
心在旅途 2021-01-03 06:37

If a foreground thread is a thread that prevents a process from terminating until all foreground threads belonging to the process have finished, and if the

2条回答
  •  耶瑟儿~
    2021-01-03 07:07

    The difference is the concept of Fire and Forget.i.e. One does not wait for the end of the thread. If one calls the Join method then you are explicitly waiting for the thread to finish execution.

提交回复
热议问题