Does anyone know of any good books for programming for dual processors? Or any good websites that show general programming for multiple processors?
Does anyone know of any good books for programming for dual processors? Or any good websites that show general programming for multiple processors?
This would depend greatly on the platform you are developing on.
Platform is for a PC.
Windows? Linux? Solaris? Proprietary OS?
The options are almost endless.
I'm pretty sure both Intel and AMD's optimization guides will have SOME information on the subject.
However, the solutions for a particular type of problem depends very much on the problem itself - it's relatively easy if it's a math problem with many calculations that are relatively independent (FEM - Finite Element Method is a typical example, where some structure is "sliced" into many thin slices and each slice is calculated independently of other slices). Calculations which depends on the result of a previous calculation, or processing data that is shared between threads gets much harder.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Hey bud, here's a couple of books for ya to try out.
Intel threading building blocks
Modern multithreading
Hope it helps!