when does a thread reach the terminated status? Does it get terminated when the end of the run() method is reached?
run()
So what is the right wa
test the method thread.isAlive()
thread.isAlive()
... or optionally, join until it finishes with thread.join()
thread.join()