Skip to content

Instantly share code, notes, and snippets.

@Mahdisadjadi
Last active March 7, 2016 22:16
Show Gist options
  • Save Mahdisadjadi/e1bbc25f802222af7124 to your computer and use it in GitHub Desktop.
Save Mahdisadjadi/e1bbc25f802222af7124 to your computer and use it in GitHub Desktop.
Return the number of CPUs in the system
python -c 'import multiprocessing as mp; print(mp.cpu_count())'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment