From: Jacob Mitchell Date: 2010-01-22T17:09:25+09:00 Subject: Re: thread example --000e0cd6cf0829dfd9047dbc56eb Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jan 21, 2010 at 10:53 PM, Ruby Newbee wrote: > After I run it, I didn's see any output, even the expected puts: > "I counted up to #{@count} before I was cruelly stopped." > > Where is wrong? > Thanks. > > The output is getting buffered so it's just not getting displayed before the thread stops. To fix this, put "$stdout.flush" at the end of your code. --000e0cd6cf0829dfd9047dbc56eb--