code: public static void setThreadPoolCPUsFraction(float fraction) {
  		setThreadPoolSize(Math.max(1, Math.round(fraction * Runtime.getRuntime().availableProcessors())));
  	}
docs: Sets thread pool to a given fraction of the available processors.
  
  @param fraction portion of available processors to use in thread pool