Keep a thread from using all excess CPU time.

Posted on 2005-04-29
Last Modified: 2010-04-05
Keep a thread from using all excess CPU time.  I am running a thread and no matter what I do, (even setting the priority) it uses all available cpu time thereby hording the cpu and slowing down other tasks.
Question by:ncostanzo
    LVL 22

    Expert Comment


    into your thread
    LVL 5

    Accepted Solution

    Alternatively, you can set its priority to Idle.
    This will refrain the thread from running unless there're no active user tasks.


    LVL 20

    Expert Comment

    What does that thread do? Can we see some code, please?

    Author Comment

    The above did not solve the problem.

    We removed the thread from our program and are doing it another way.  I withdraw the question.
    LVL 22

    Expert Comment

    if you showed some code of the thread, Madshi could help you, he's guru in this and all low level stuff

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now