0

I'm new with multi-threading and I need to know when exactly do I need to join my thread not to detach it. what are the factors I need to take in consideration to know that the thread is "must to join" ?

Arwa196
  • 133
  • 1
  • 10

1 Answers1

2
  • Use join if you want to wait block until the thread completes.
  • Use detach if want let the thread to run independently.

You can also look at these answers

Community
  • 1
  • 1
Ryan T. Grimm
  • 1,307
  • 1
  • 9
  • 17