On Tue, 10 Jan 2006 22:21:28 +0900, Mark Volkmann
<r.mark.volkmann / gmail.com> wrote:

> If I create a thread and don't want it to be eligible to run until I
> decide to make it eligible later, how do I make it sleep? In other
> words, what's the opposite of Thread.wakeup?
> 
> Thread::stop stops the execution of the current thread. I need a way
> to stop execution of a thread that is not the current thread so that
> it won't be scheduled.

If you want to stop it right at the beginning then perhaps this
might be sufficient for your purposes:

  thr = Thread.new {Thread.stop; puts "thr running now"}
  # stuff
  thr.run

andrew