Sha256: 3c62690d076279013d2c6dcccc98d73d04b851a2760a5b6176ab3252af2ac00c
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
require 'thread' # modify include path $: << File.join(File.dirname(__FILE__),'lib') require 'find_mids' include FindMids NUM_THREADS=8 threads=[] # create NUM_THREADS threads NUM_THREADS.times do |n| # that calculates some numbers threads << Thread.new do # thread identifier ident=n do_dummy_calculation end end # wait for threads termination threads.each do |th| th.join end puts "The END"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scbi_mapreduce-0.0.45 | skeleton/old/sequences_blast/test_threads.rb |