Multi-Thread Optimization

HMTT had been used to analysis multi-thread lock contention. By instrumenting the mutex_lock() function in Linux, all accesses to lock memory will generate
an extra memeory access which can be captured by HMTT for future analysis. So the lock access trace can be dumpped with low interference to the original program. Please see:

Yongbing Huang, Zehan Cui, Licheng Chen, Wenli Zhang, Yungang Bao, Mingyu Chen: HaLock: hardware-assisted lock contention detection in multithreaded applications. Proc. of the 21st International Conference on Parallel Architectures and Compilation Techniques(PACT 2012),PP253-262,Minneapolis, MN, USA,September 19-23, 2012