API for configurable thread pools.