Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to force computer to give more than 50% of processor power to a program?

Status
Not open for further replies.

fatma1000

Banned
Joined
Apr 30, 2006
Messages
147
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
eygpt
Activity points
0
if i run in my computer any program ( for example c++ program)
the computer gives only 50% of processor power to this program and the rest save it to system idel process ( you can finde this in windows task manager)

how can i force my cmpouter to give to this program mor than 50% of the processor power?


thanks
 

Re: problem

Do you have a dual-core processor?

Save the following text as take100.bat somewhere, the desktop for example.
Code:
@echo off
:here
goto here
Run task manager and double-click take100.bat (which will bring up a blank command window) now check the CPU usage and finally click the command window's X icon to kill it. If you only got 50% this time try running two instances of take100.bat and check the CPU usage again.

David
 

    fatma1000

    Points: 2
    Helpful Answer Positive Rating
Re: problem

i do not have a dual-core processor

after i made your instructions i still get 50% of processor power

please i it is very important to me becouse my program takes about 24 hours by this 50% and if i can get abou 75% that means about 8 hours saved


thanks

Added after 17 minutes:

i want a method to prevent my computer to save 50% of its processor power to system idle process as shown in windows task manager
 

Re: problem

fatma1000 said:
i do not have a dual-core processor
OK, but do you have a machine that supports hyperthreading? If so, turn it off in the BIOS and try again. For the reasons why this might work and the implications of switching off hyperthreading try Google.

David
 

    fatma1000

    Points: 2
    Helpful Answer Positive Rating
Re: problem

I did not finde in my BIOS ant thing about hyperthreading or HT


how come?

thanks David
 

Re: problem

fatma1000 said:
I did not finde in my BIOS ant thing about hyperthreading
Well, do you have a hyperthreading processor in the first place? What is your processor? Is it in this list:

https://www.intel.com/products/ht/hyperthreading_more.htm

When I first saw your message, I thought it was likely that you had two cores as that would mean a single threaded program could never take more than 50% of the available processor power. Just in case your program was special in some way and yielded 50% of its CPU allocation I sent the little batch file. On my machine running that batch file makes task manager show 100% CPU usage.

I didn't know what to think when you said that you had a single core and that my batch file still only used 50% of the CPU (did you try running multiple instances by the way?). At this point I asked Google for help and got lots of hits saying this problem is related to hyperthreading. For example:

**broken link removed**

If your processor supports hyperthreading then I'm sure Google will come up with some way of turning it off. But, I'm afraid, if your problem is not related to hyperthreading, I've run out of ideas. Sorry.

David
 

    fatma1000

    Points: 2
    Helpful Answer Positive Rating
Re: problem

My processor is Intel pentium 4 3.20GHz
windows XP professional edition service pack 2

thanks
 

Re: problem

fatma1000 said:
My processor is Intel pentium 4 3.20GHz

Mmmm ... Not sure if all 3.2GHz P4s support hyperthreading. Intel provides some software that will report your exact processor type here:

http://support.intel.com/support/processors/sb/CS-015477.htm

Try that.

To be honest, if you can't find a way to disable hyperthreading (and I can't help with that), it's a moot point whether your CPU uses it or not. Even if you manage to turn HT off, so that task manager then shows the expected 100% usage figure, your program may not run any faster. Perhaps Windows simply uses different ways of computing CPU load depending on whether HT is enabled or not. It's unlikely that turning HT off will magically make your computer twice as fast!

David

Added later ....

If you find your processor does support HT, the next step is to find out a bit more about your motherboard. As far as I can tell there should be a way to disable HT in the BIOS and you might find some hints about how to that on the motherboard manufacturer's web site.
 

    fatma1000

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top