http://www.linuxquestions.org – We are porting a multi-process application to multi-threaded architecture. We have the same application running on Windows and it is very performant. For Linux we are using the pthread libraries. In order to avoid memory contention we have custom heaps, each thread having its own heap. We are using mspace for this custom heap implemention. (HowTos)