Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get number of cores in python

import multiprocessing

multiprocessing.cpu_count() # or os.cpu_count()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #cores #python
ADD COMMENT
Topic
Name
3+2 =