From: "URABE Shyouhei aka. mput" Date: 2005-09-21T16:14:33+09:00 Subject: [ruby-dev:27263] Re: (nil while true) won't switch thread (Re: ruby-1.8.3 status for release) うらべです。 Yukihiro Matsumoto wrote: >というようなスクリプトはちゃんとスレッドの切替えが起きている >ようです。Debian GNU/Linuxです。ハングしたスクリプトを見せて >もらえませんか? > > > その後確認したところだと、 ./configure --enable-pthread でコンパイルする とハングしないようです。 % ./miniruby -rtimeout -e 'timeout(1) { nil while true }' という実験をすると、 pthread 版はきちんと Timeout::Error になりました が、pthread でないほうはハングしました。 環境は linux 2.4.26 / glibc 2.3.5 です。