From: Assaph Mehr Date: 2005-02-07T12:50:09+09:00 Subject: Re: Stopping a thread Bill Atkins wrote: > Say I have a thread in variable @thread. Is it possible to stop that > thread from the main thread? I am aware of Thread.stop, but I don't > want to stop the current thread, just the thread represented in > @thread. Look at Thread#kill. e.g.: @thread = Thread.new { while true puts 'still going' sleep 2 end } sleep 7 @thread.kill puts 'done'