Cross Reference: bm_vm_thread_alive_check1.rb
xref
: /
macosx-10.9.5
/
ruby-104
/
ruby
/
benchmark
/
bm_vm_thread_alive_check1.rb
Home
History
Annotate
Line#
Navigate
Raw
Download
only in
/macosx-10.9.5/ruby-104/ruby/benchmark/
1
5_000.times
{
2
t =
Thread.new
{}
3
while
t.alive
?
4
Thread.pass
5
end
6
}
7