How to Count how many cpu your pc has with Python

Use the multiprocessing module to get how many cpu has your processor.

>>> import multiprocessing as mp
>>> mp.cpu_count()
20

Subscribe to the newsletter for updates
Tkinter templates
My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts