摘要: 长时间来一直以为在读多写少的场景下,读写锁性能必然优于互斥锁,然而情况恰恰相反 不废话了,先上一段测试代码 go run test_rwmutex_mutex.go rwmutex cost: 22.403487195s mutex cost: 21.636404963s go run test_r 阅读全文
posted @ 2018-08-10 19:56 水月江南 阅读(3126) 评论(0) 推荐(0) 编辑