+ 1

What is join method used for?

Can anyone explain me the concept of join method in multi threading and how it exactly works

3rd Feb 2017, 7:57 AM
Ratnadeep Dey
Ratnadeep Dey - avatar
1 ответ
+ 1
join() will wait until the timeout expires or the thread finishes. sleep() will just wait for the specified amount of time unless interrupted. join() waits for something meaningful. sleep() just sits there doing nothing
3rd Feb 2017, 4:31 PM
Al Dokhi Abdaullah
Al Dokhi Abdaullah - avatar