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

  • Home
  • SEARCH
  • 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 8260819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:11:10+00:00 2026-06-08T03:11:10+00:00

When I run an application I wrote on one machine, Windows 7 Professional 32

  • 0

When I run an application I wrote on one machine, Windows 7 Professional 32 bit SP 1, it runs just fine and uses 100% of the CPU in the system.

However, when I run the same application on a Windows Server 2008, I do not see 100% CPU usage.

Why does it not use 100% of the CPU as well, and how can I make it so that it does?

  • 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-06-08T03:11:12+00:00Added an answer on June 8, 2026 at 3:11 am

    Well, normally you do not want to be using 100% CPU, as you want to leave your self head room for when you have increased load. Usually a program will not use the CPU all the time, as it will start to become limited by other factors, usually I/O.

    Take for instance a GUI application, until a user clicks something, the is nothing for it do, other then keep waiting for user input.

    You might foolishly write this as

    while(true){
      if(there is user input){
        use the user input
      }
    }
    

    This will burn up the CPU, as it will run this loop really fast. So a canny shopper might realise that the user can cope with say, an up to 50 ms delay between clicking and response. and so add in some sort of sleep, such as…

    while(true){
      if(there is user input){
        use the user input
      }
      sleep for 50 ms
    }
    

    it is important to give the CPU a chance to do other things, as they are important to, else your program is like that fat kid who just sticks his head under the icecream machine and never lets any one else have some tasty tasty icecream.

    edit

    I love me a metaphor, so here is one for you.

    Think of CPU usage as roads and programs as cars, if the roads are all clear, then it’s relatively safe for your car to burn rubber and go as fast as it can down the streets. The more cars there are, the more they are going to have to yield for each other, let wait for people to turn off or on.

    If you where to dedicate your road (CPU) for something like racing (gaming) you would be inclined to remove things like pedestrians and non racing cars (other programs) so that you can more safely go as fast as possible.

    Now, I never said I was any good at metaphors. And remember drive safe, and enjoy the icecream!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed one swing application but each time you run application new window is
I wrote an application that uses GraphViz to generate some graphs as .gif's according
Let me start off by saying I had one DLL loading in just fine.
I have a VPN in my office. One machine has windows server 2003 installed.
I've got a .NET CF (C#) mobile application that I run on a windows
I wrote an android application and after I run it, it occurs twice in
I wrote a basic two-view application that switches from one view to another every
If I write an application in java, does it use native widgets if run
I am required to write a C++ application to run on an embedded Linux
I am trying to write a small Java application that will let me run

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.