我现在遇到终止线程的问题。反正有没有立即杀死一个线程?
def write_data
linux.execute("/usr/local/bin/pload -w -W -o", timeout=> 10800)
end
def func
if( a < b)
th = nil
th = Thread.new{
write_data
}
th.run
wait_until(interval=>60,timeout=>never){
if( b > a)
}
th.kill if th and th.alive?
end
end