A pool of threads example