Adjust number of threads per worker if it exceeds number of physical cpus (fixes #215)
Added a check to reduce number of threads per worker if it exceeds number of available physical cpus, which would otherwise result in zero workers.
Added a check to reduce number of threads per worker if it exceeds number of available physical cpus, which would otherwise result in zero workers.