Why does my Python program average only 33% CPU per process? How can I make Python use all available CPU?

后端 未结 7 1859
难免孤独
难免孤独 2021-02-01 08:11

I use Python 2.5.4. My computer: CPU AMD Phenom X3 720BE, Mainboard 780G, 4GB RAM, Windows 7 32 bit.

I use Python threading but can not make every python.exe process co

7条回答
  •  执念已碎
    2021-02-01 08:46

    From CPU usage it looks like you're still running on a single core. Try running a trivial calculation with 3 or more threads with same threading code and see if it utilizes all cores. If it doesn't, something might be wrong with your threading code.

提交回复
热议问题