Skip to content

Instantly share code, notes, and snippets.

@mezzatto
Created August 24, 2016 13:53
Show Gist options
  • Save mezzatto/8c18c3ea68bb7e8872f21a5a776636ab to your computer and use it in GitHub Desktop.
Save mezzatto/8c18c3ea68bb7e8872f21a5a776636ab to your computer and use it in GitHub Desktop.
CPUs
int nthreads = Math.max(1, Runtime.getRuntime().availableProcessors() / 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment