Skip to content

Instantly share code, notes, and snippets.

@Vresod
Created October 4, 2018 20:35
Show Gist options
  • Save Vresod/33c630d4376849e03614c3036728c3ab to your computer and use it in GitHub Desktop.
Save Vresod/33c630d4376849e03614c3036728c3ab to your computer and use it in GitHub Desktop.
Processor utility!
import os
cpus = os.cpu_count()
if cpus == 1:
print('You have',cpus,'CPU.')
else:
print('You have',cpus,'CPUS.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment