Program to test the performance of pthread_mutex_t and alternate implementations
C++