Skip to content

Instantly share code, notes, and snippets.

@devendranaga
Created June 13, 2015 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devendranaga/362eef39b5a11beb0b85 to your computer and use it in GitHub Desktop.
Save devendranaga/362eef39b5a11beb0b85 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import psutil
print "num cpus " + str(psutil.cpu_count(logical=False))
print "num cpu (total) " + str(psutil.cpu_count())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment