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

后端 未结 7 1851
难免孤独
难免孤独 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:52

    You should perform some Operating System and Python monitoring to determine where the bottle neck is.

    Here is some info for windows 7:

    Performance Monitor: You can use Windows Performance Monitor to examine how programs you run affect your computer’s performance, both in real time and by collecting log data for later analysis. (Control Panel-> All Control Panel Items->Performance Information and Tools-> Advanced Tools- > View Performance Monitor)

    Resource Monitor: Windows Resource Monitor is a system tool that allows you to view information about the use of hardware (CPU, memory, disk, and network) and software (file handles and modules) resources in real time. You can use Resource Monitor to start, stop, suspend, and resume processes and services. (Control Panel-> All Control Panel Items->Performance Information and Tools-> Advanced Tools- > View Resource Monitor)

提交回复
热议问题