Looking for threads with high CPU utilization

Source: Internet
Author: User
Tags high cpu usage

1. In the programming process sometimes improper setup, sleep time is not enough, generally 4 cores of computer CPU utilization has been greater than 23%, 8 cores greater than 13% is likely to be the case

Workaround:

View parallel threads in VS
Use the CPU tool processexplorer to view threads with high CPU usage
To view the same thread ID and parallel thread ID
Then look closely at the code of that parallel thread

2.

See if there is a deadlock in the code, a dead loop or a time-consuming code, some programs that need to be hosted on other hardware

3. Other:

Hardware reason: poor heat dissipation, drive problem

Virus crawlers and other external malware:

Call a process repeatedly without ending:

Looking for threads with high CPU utilization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.