2009/5/26 Nabs Kahn <nabusman / gmail.com>: > I'm creating a screen scraping software and I want to have X (let's say > 10 for example) threads running simultaneously doing the scraping. The > program will access a text file containing an unknown number of URLs and > then scrape. > > My question is how do I setup the threads so that once a thread finishes > execution it picks up another URL and starts executing again. Create a Queue (require 'thread') and have your worker threads read URL's from it. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/