Parameterized thread pool size