ruby--ruby/benchmark/bm_vm_thread_alive_check1.rb

7 lines
73 B
Ruby

5_000.times{
t = Thread.new{}
while t.alive?
Thread.pass
end
}