From: SASADA Koichi Date: 2012-07-20T16:05:51+09:00 Subject: [ruby-dev:45982] Re: [ruby-trunk - Feature #6694] Thread.new without block. (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