Posted in

Go小程序并发模型误区澄清:sync.Mutex vs RWMutex vs atomic vs channel的真实性能基准测试(含Go 1.22 benchmark数据)

第一章:Go小程序并发模型误区澄 … Go小程序并发模型误区澄清:sync.Mutex vs RWMutex vs atomic vs channel的真实性能基准测试(含Go 1.22 benchmark数据)Read more

Posted in

Go test -race检测出竟有23处竞态?斗鱼Golang并发安全审计全流程(含atomic.Value替代sync.Mutex的5个场景)

第一章:斗鱼Golang后台并发 … Go test -race检测出竟有23处竞态?斗鱼Golang并发安全审计全流程(含atomic.Value替代sync.Mutex的5个场景)Read more

Posted in

Go sync.Mutex.Lock()等待会触发系统调用吗?:从futex_wait到gopark,一张图看懂内核态/用户态资源切换成本

第一章:Go sync.Mute … Go sync.Mutex.Lock()等待会触发系统调用吗?:从futex_wait到gopark,一张图看懂内核态/用户态资源切换成本Read more