Changed num threads to use cached thread poll if -1