Read number of cores and use as default parameter for number of server
threads