Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 865003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:34:19+00:00 2026-05-15T09:34:19+00:00

i have an application with 4 threads from which 2 are event based and

  • 0

i have an application with 4 threads from which 2 are event based and 2 are not event based.

the problem is i have to isolate the 2 non event based threads in which while(1) loop is executing that takes a huge cpu usage and this usage reaches even up to 100%,

i think making these threads isolated can reduce the cpu usage,

will it be a good idea, if there is any other method plz refer me.

and i also want to know how to isolate the threads.

thanx in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:34:19+00:00Added an answer on May 15, 2026 at 9:34 am

    As a general rule, you rarely want to simply reduce the CPU usage. While you certainly can do so (e.g., by sleeping for a while on a semi-regular basis) it won’t really accomplish much. Assuming, of course, that the threads are doing something useful with the CPU time, reducing CPU usage will simply stretch the computation over a longer period of time.

    To derive real benefit, reduce the priority of the CPU-intensive threads. This allows the threads to finish their computation as quickly as possible as long as they’re the only threads that are ready to run. At the same time, it also means that the lower-priority threads will consume absolutely no CPU time1 as long as there are any higher-priority threads that are ready to run.

    1. Well, if you want to get technical, Windows has an anti-starvation mechanism that lets lower priority threads that are ready to run get a minuscule bit of CPU time, but it’s so little that it normally won’t affect higher-priority threads enough to notice.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function that is being called from different threads in the application.
I have a problem with winform application which uses threads to update the UI.
I have a Qt application that launches two threads from the main thread at
I have a Delphi application which spawns 6 anonymous threads upon some TTimer.OnTimer event.
I have an application that has two threads. The first one (the main thread)
I have an application which runs multiple threads. I use MadExcept to catch errors
We have a web application that is generating some 3-5 parallel threads every five
I have a multithreaded application, in which I'm trying to render with different threads.
We are observing 4-6 threads on Windows 7 x64 in the application which have
I have an application which has a loop, part of a Scheduler, which runs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.