# Monitor if a thread is running

**URL:** <https://www.ruby-forum.com/t/monitor-if-a-thread-is-running/232489>\
**Category:** Ruby-Gnome 2\
**Created:** [October 12, 2014, 12:41pm UTC](https://www.ruby-forum.com/t/monitor-if-a-thread-is-running/232489 "2014-10-12T12:41:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [October 12, 2014, 12:41pm UTC](https://www.ruby-forum.com/t/monitor-if-a-thread-is-running/232489/1 "2014-10-12T12:41:40Z")

</div>

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
