How can I check nbr of cores of computer?

gbs gboutsioukis at gmail.com
Tue Jul 29 20:19:21 EDT 2008


On Tue, 29 Jul 2008 15:53:47 -0700, defn noob wrote:

> How can I check how many cores my computer has? Is it possible to do
> this in a Python-app?

Well you can try the functions in the 'platform' module, although in my 
box(debian) nothing useful comes out. I don't think there's a simple & 
portable way, you probably have to find one specific to your platform . 
(if you are on linux, you can parse the output of 'cat /proc/cpuinfo')




More information about the Python-list mailing list