Yes I felt your pain when I was doing this:

http://rosenfeld.herokuapp.com/en/articles/ruby-rails/2012-03-04-how-nokogiri-and-jruby-saved-my-week

I do also miss a thread pool implementation in Ruby stdlibs.

On Mon, Sep 17, 2012 at 4:29 PM, Roger Pack <rogerdpack2 / gmail.com> wrote:
> It has always seemed a bit odd to me that Ruby's sdlib doesn't have some kind of
> threadpool class.
>
> I know it's easy to roll your own, but it would be slightly easier to
> be able to do something like
>
> a = [1,2,3]
> ThreadPool.new(a).map{|number|
>  number*3
> }
>
> Or the lik.
> Feedback welcome. If none I'll file a feature request redmine.
>
> Thank you.
> -roger-
> related: http://stackoverflow.com/questions/3840751/why-doesnt-ruby-have-a-threadpool-built-in/3841111#3841111
>