From: Robert Klemme Date: 2010-03-09T00:40:47+09:00 Subject: Re: Limit number of concurrent running threads in pool 2010/3/8 Joe Martin : > Robert Klemme wrote: >> Which other method are you referring to? > > Well my original thinking was to create a thread for every single item I > pass to the program.  Caleb answered this for me in that threads > themselves are quite heavy, so it further leads me to go with your > solution which creates a low number of threads and re-uses them until > the queue is empty.  It seems much more simple and effecient than my > original plan. Ah, OK. Then I was just confused because you had used the term "thread pool" in your original posting. That term is commonly use for exactly the type of solution I posted (fixed or at least limited number of threads which get their tasks from some form of queue). You probably weren't aware of this. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/