Python Forum
Read the Processor . . . - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Read the Processor . . . (/thread-39490.html)



Read the Processor . . . - JohnnyCoffee - Feb-26-2023

Hello
I'm using the platform module with the function ( machine ), which returns the architecture of the processor, but I need to know how many ( Core ) are in the processor, which would be the path of the stones ?


RE: Read the Processor . . . - Axel_Erfurt - Feb-26-2023

import psutil

print("Physical cores:", psutil.cpu_count(logical=False))