I'm not getting join() method.
t.join() waits for the thread t to die.
So it's waiting for itself to die? Why?
What does it mean for a thread to "die?"
What happens after it dies?
What happens if it doesn't die?
sleep() method pauses the current thread for a specific time. Isn't that what join() is doing? What's the difference between them?
is join(0) the same as join() ?
It be appreciated if anyone could answer those questions.