# Thread.new { Thread.stop }; Thread.stop

**URL:** <https://www.ruby-forum.com/t/thread-new-thread-stop-thread-stop/138405>\
**Category:** Development\
**Created:** [May 22, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/thread-new-thread-stop-thread-stop/138405 "2008-05-22T18:12:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [May 22, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/thread-new-thread-stop-thread-stop/138405/1 "2008-05-22T18:12:58Z")

</div>

e$B0J2\<$N%W%m%0%i%`$,=\*N;$7$J$$$N$Oe(B 1.8 e$B$H0[$J$j$^$9!#e(B

% ./ruby -ve ‘Thread.new { Thread.stop }; Thread.stop’  
ruby 1.9.0 (2008-05-22 revision 16533) [i686-linux]

1.8 e$B$G$Oe(B deadlock e$B$N8!=P$K$h$C$F=\*N;$7$^$9!#e(B

% ruby-1.8 -ve ‘Thread.new { Thread.stop }; Thread.stop’  
ruby 1.8.7 (2008-05-22 patchlevel 5000) [i686-linux]  
deadlock 0xb7d770b4: sleep:- - -e:1  
deadlock 0xb7d84250: sleep:- (main) - -e:1  
-e:1:in `stop’: Thread(0xb7d84250): deadlock (fatal)  
from -e:1
