如何杀死一个线程

调用 Thread.kill 或 Thread.terminate:

thr = Thread.new { ... }
Thread.kill(thr)