Basic Ruby threadpool