Thread Pool implementation in Ruby in order to limit the number of simultaneous running threads.