E
Emil Sandin
Hi, can anyone explain why this script:
Thread.new do
3.times{
puts "hello"
}
end
Gives the folllowing output:
"hello"
I expect it to print "hello" three times, just as it would if I hadn't
put it inside a thread. Do I need to flush the output or something like
that?
Thread.new do
3.times{
puts "hello"
}
end
Gives the folllowing output:
"hello"
I expect it to print "hello" three times, just as it would if I hadn't
put it inside a thread. Do I need to flush the output or something like
that?