I've been finding different and confusing descriptions of the .join method pertaining to threads online, I've tried it in a few tests and this is what I'm gathering...
I am under the impression, contrary to some websites I have visited, that the .join method blocks any other threads from starting until the calling thread is finished. Also, if another thread has already started before the .join is called, it is not affected and continues on as normal. Is that correct?
This is probably an easy yes, but I just want to be sure as if that's the case I'll be using it a LOT in my upcoming project.
Thanks!
I am under the impression, contrary to some websites I have visited, that the .join method blocks any other threads from starting until the calling thread is finished. Also, if another thread has already started before the .join is called, it is not affected and continues on as normal. Is that correct?
This is probably an easy yes, but I just want to be sure as if that's the case I'll be using it a LOT in my upcoming project.
Thanks!
Comment