Skip to content

Instantly share code, notes, and snippets.

@aananya27
Created June 5, 2019 10:38
Show Gist options
  • Save aananya27/4e871859c7cc90d9cd546c8859c2b245 to your computer and use it in GitHub Desktop.
Save aananya27/4e871859c7cc90d9cd546c8859c2b245 to your computer and use it in GitHub Desktop.
import multiprocessing
num_of_cpu = multiprocessing.cpu_count()
print num_of_cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment