how to increase cpu utilization to 100%
im working with a vc++ application and i am having a hp pavilion elite pc-m9561me. with quad pro processor. my application is a big one and it is taking lot of time to execute. even though i have quad pro processor...in the task manager, in the performance tab it is showing 25% cpu utilization only..can some one tell how to write the code for my application in order speed up the process of execution for my program....
thanks in advance...
Nasru
Re: how to increase cpu utilization to 100%
Quote:
with quad pro processor.... it is showing 25% cpu utilization
Start using a OS that can truly support your quad core. 100% / 4 cores = 25%. Your application using everything it can get, but your OS doesn't really support 4 cores.
Re: how to increase cpu utilization to 100%
Quote:
Originally Posted by
Skizmo
Start using a OS that can truly support your quad core. 100% / 4 cores = 25%. Your application using everything it can get, but your OS doesn't really support 4 cores.
i have windows vista installed in my computer..wat is the problem with it....should i have to disable any services? in msconfig?
Re: how to increase cpu utilization to 100%
Hmmm... after some Googling I found out that Vista supports quad-cores fine. Apparently your application only uses one. Why this is, or how to fix it.. .sorry can't answer that.
Re: how to increase cpu utilization to 100%
Multiple threads would probably help, but I don't think 100% on all four processors is a realistic goal.
Re: how to increase cpu utilization to 100%
thanks for ur reply...what do u mean by multiple threads? is it possible to improve the cpu utilization forcefully or not?
Re: how to increase cpu utilization to 100%
Quote:
Originally Posted by
Skizmo
Hmmm... after some Googling I found out that Vista supports quad-cores fine. Apparently your application only uses one. Why this is, or how to fix it.. .sorry can't answer that.
thanks for ur reply....in the way if u find any answer plz post it....
Re: how to increase cpu utilization to 100%
Quote:
Originally Posted by
nasru
thanks for ur reply....in the way if u find any answer plz post it....
Please use complete and real words on this board.
Threads allow multiple pieces of code to run concurrently. In a single thread each instruction follows the previous one. With multiple threads, each cpu could execute it's own section of code at the same time. Obviously quite a bit of thought would have to go into the design to take full advantage of the four cpus.
Re: how to increase cpu utilization to 100%
As stated previously YOU must design your application so the work is divided up into parts that can be perfomed independantly. It is NOT something the computer does. It is entirely controlled by how YOU write the program.