cpu allocation

  • Thread starter Thread starter Dave M.
  • Start date Start date
D

Dave M.

I have an exe that solves NP hard programs, taking
several days to complete. The Performance monitor shows
the app gets only 50 percent of the CPU and Idle gets the
other half. I'd rather have my problem solved in half as
many days than have my CPU idle half the time. Any
suggestions?
 
Dave said:
I have an exe that solves NP hard programs, taking
several days to complete. The Performance monitor shows
the app gets only 50 percent of the CPU and Idle gets the
other half. I'd rather have my problem solved in half as
many days than have my CPU idle half the time. Any
suggestions?

maybe your app is running on an dual-processor machine (or hyperthreading-
machine) ????

If this is the case, then you are only using one thread....

If you have a real dual-processor system, then split your problem into two
threads and let it run.... it will then take almost half of the time to
complete...

If you have an hyperthreading-processor, then it depends on your thread´s-
code. If one thread is only doing interger-calculation and the other only
float; then it will be 30 % faster than on single-processor systems.

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
 
Back
Top