This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
literate-tribble/embed/pure-ruby-embed.rb

19 lines
217 B
Ruby
Raw Normal View History

2015-12-10 14:14:30 -05:00
threads = []
10.times do
threads << Thread.new do
count = 0
5_000_000.times do
count += 1
end
count # return
end
end
threads.each do |t|
puts "Thread finished with count=#{t.value}"
end
puts "done!"