summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm4_alive_check1.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_vm4_alive_check1.rb')
-rw-r--r--benchmark/bm_vm4_alive_check1.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/bm_vm4_alive_check1.rb b/benchmark/bm_vm4_alive_check1.rb
new file mode 100644
index 0000000000..aebe99875d
--- /dev/null
+++ b/benchmark/bm_vm4_alive_check1.rb
@@ -0,0 +1,6 @@
+5000.times{
+ t = Thread.new{}
+ while t.alive?
+ Thread.pass
+ end
+}