I stumbled upon this rather interesting (although Windows-specific)
series of articles on how to tweak Windows code for concurrency/multiple
cores:
http://www.devx.com/amd/Article/32246
http://www.devx.com/amd/Article/32301
http://www.devx.com/amd/Article/32521
http://www.devx.com/amd/Article/32959
It is written/sponsored by AMD, so there are a few things here you might
not be able to do everywhere. But it looks like there are some useful
tricks in here.
–
M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blogspot.com/
If God had meant for carrots to be eaten cooked, He would have given
rabbits fire.