G
Guillaume Marcais
I have a GUI application with a bunch of threads proxying network
information around. But the network communication seems very slow if not
stopped. To make sure, I added a "keep alive" thread:
Thread.new do
loop do
puts("Keep alive #{Time.now}")
sleep 1
end
end
This thread hangs after a little while and stop outputting anything. If
I move the mouse over the window, a bunch of lines are printed by the
keep alive thread, all at once with the same time, and then it hangs
until the next GUI event.
Is this a known problem? Or am I completely misguided?
Guillaume.
information around. But the network communication seems very slow if not
stopped. To make sure, I added a "keep alive" thread:
Thread.new do
loop do
puts("Keep alive #{Time.now}")
sleep 1
end
end
This thread hangs after a little while and stop outputting anything. If
I move the mouse over the window, a bunch of lines are printed by the
keep alive thread, all at once with the same time, and then it hangs
until the next GUI event.
Is this a known problem? Or am I completely misguided?
Guillaume.