From: Roger Pack Date: 2010-03-05T04:05:50+09:00 Subject: Re: Limit number of concurrent running threads in pool > I created a pool of threads (say, 500 threads) to process. However, due > to the weight of each thread, I want to limit the number of threads that > run concurrently. > > So how would I go about putting a limit on the number of threads that > run at any given time? I would like to take, say, 5 threads from the > pool and run them, and as each one completes, it is removed from the > pool and is replaced with a new thread from the pool. http://github.com/spox/actionpool might help. -r -- Posted via http://www.ruby-forum.com/.