Adam Prescott wrote in post #1101931:
>
> As Joel said, what's the problem you're really trying to solve?

The real problem is that there are plenty of files on disks and a long 
list of words stored in an array. I'd count the total appearing times 
for every words among these files.

I need to run this task with a multiple threads program. Each thread 
would take one word from the array by shifting a word to ensure other 
thread will not do the same task at the same time, then do the counting. 
However, the total numbers of thread should be controlled at a number 
less than 10.

-- 
Posted via http://www.ruby-forum.com/.