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?
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.
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.
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.
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.