hardware_concurrency can return 0, if inforamation about CPU amount is unavailable