Use hardware_concurrency() to determine number of workers.