(2012/07/20 15:46), shyouhei (Shyouhei Urabe) wrote:
> Forgot to mention to @_ko1 that both POSIX and Windows API starts threads immediately when they are created.
> 
> It is not that obvious what should happen when a thread that was created is not running.

On POSIX and Windows threads, the creation API has configuration
parameter.  Thread.new doesn't have.

> For instance, to join that thread should do what?

Two possible solutions.

1. raise ThreadError
2. wait for thread run and exit.

On second solution, it is easy to understand that the thread created by
Thread.new without procedure (block or parameter) start and stop
(Thread#wait) immediately.

But I prefer 1.

-- 
// SASADA Koichi at atdot dot net