From: Lionel Thiry Date: 2004-12-05T01:02:39+09:00 Subject: Re: [nuby] about ruby multithreading > No, system does not block other ruby threads. Thanks for the remark... I was a bit confused about my interpretation of the answer, and I could not test system("sleep 10000") on my windows2k to see how it works. > > $ cat x.rb > STDOUT.sync = true I didn't know that stuff! It's interesting, where is that documented? > > Thread.new { > loop do > sleep 1 > puts Time.now > end > } > > system("sleep 10") > > $ ruby -v x.rb > ruby 1.8.2 (2004-11-06) [powerpc-darwin7.6.0] > Fri Dec 03 09:57:47 PST 2004 > Fri Dec 03 09:57:48 PST 2004 > Fri Dec 03 09:57:49 PST 2004 > Fri Dec 03 09:57:50 PST 2004 > Fri Dec 03 09:57:51 PST 2004 > Fri Dec 03 09:57:52 PST 2004 > Fri Dec 03 09:57:53 PST 2004 > Fri Dec 03 09:57:54 PST 2004 > Fri Dec 03 09:57:55 PST 2004 > $ Thanks for the help, Lionel Thiry