cpu allocation

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

Jochen Kalmbach

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top