[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Blocking IO in Windows threads

Robert Sheehan

1/12/2005 7:33:00 PM

Under Linux the following code from Dave Thomas doesn't block.

Thread.new do
loop do
puts "You said #{gets}"
end
end

10.times do
sleep(1)
puts "Say something"
end

But under Windows with the latest one-click installer, it does.
Any ideas on how I can do something similar on Windows? It also doesn't
seem to have "io/wait".

Thanks