Tu as pour cela les fonctions
thread.isAlive()
et
thread.join()

Plus d'info ici