Monitor if a thread is running

Hello,

i have a spinner which i want to monitor if a thread is running or not.
At the moment i set the spinner to start and stop manually when i start
the thread, if it is finished or i stop it. Is there a better solution,
something to realy monitor the state of the thread ?

Greetings
Markus