Cross Reference: bm_vm_thread_pass_flood.rb
xref
: /
macosx-10.9.5
/
ruby-104
/
ruby
/
benchmark
/
bm_vm_thread_pass_flood.rb
Home
History
Annotate
Line#
Navigate
Raw
Download
only in
/macosx-10.9.5/ruby-104/ruby/benchmark/
1
1000.times
{
2
Thread.new
{
loop
{
Thread.pass
}}
3
}
4
5
i =
0
6
while
i<
10000
7
i +=
1
8
end
9