C++的互斥锁和读写锁速度比较实战
一代码#include <stdio.h>#include <unistd.h>#include <pthread.h>#include <sys/time.h>#include <string.h>#include <cstdlib>int gcn = 0;pthread_mutex_t mutex;...