Ruby--スレッド処理
# スレッド処理 threads=[] txtfilelist = %w{yamazon.txt yamazon2.txt} for txtfile in txtfilelist threads << Thread.new(txtfile) do |txt| File.open(txt, "a") do |file| file.puts "hello" end end end # 待ち合わせ threads.each do |each_thread| each_thread.join end