新手问题 How to pass thread execution to another explicitly?

stardiviner · August 04, 2014 · 1612 hits
t1 = Thread.new { sleep 10000 }
t2 = Thread.new { sleep 20000 }
t3 = Thread.new { sleep 20000 }
Thread.kill(t1)
Thread.pass

这里 Thread.pass 是不确定的移交。能不能确定的把执行移交给某个线程?

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.