multi processor system optimization

G

Guest

Hi All,

In multi processor computer, do we need to use specific design/coding method
to optimize our program to take advantage of the multi processor?

If I use a normal program, would it automatically achieve better (maybe
significantly) performance by adding more cpu(s). By using special techniques
(targeting multi processor sys), would the performance be increased further?
If yes, what is those techniques?

thanks alot
 
G

Guest

In multi processor computer, do we need to use specific design/coding method
to optimize our program to take advantage of the multi processor?

Multi-thread your program to exploit multiple processors.

But - don't go overboard - 10 or a few 10's of threads ought to be ok, but
not hundreds or more. What you want to do is increase the odds that several
threads (more than the number of processors) will be ready to be dispatched
and unlikely to block.

If your program runs concurrently with other programs, you probably don't
need to do much at all. So don't distort the logic of your program just to
add threads.
 

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