From: "Bobby S." Date: 2011-05-08T08:20:07+09:00 Subject: Threading Loops I understood how to thread functions, but I don't understand how to implement it outside of that. I am trying to make a picture re-namer and I want to thread the renaming part to speed it up. pic_names = Dir["{E://**/*.{JPG, jpg}"] pic_numb = 1; batch_name = "test" #Want to thread this part. pic_names.each do |name| print ' . ' new_name = batch_name + pic_numb.to_s + ' .jpg' File.rename name, new_name pic_numb += 1 end Thanks in advance. -- Posted via http://www.ruby-forum.com/.