Anything Specific to Multithreading?
A common technique when a bottleneck is discovered is to utilize some high speed cache
However, in multithreaded processes, caches require mutex locks which can result in lock contention
The ensure high hit rate and low contention:
- Write proper cache code!
- Monitor hit rates and contention closely