Posted in

Go程序goroutine阻塞超时却未触发select default?——channel关闭时机、recvq/sendq唤醒竞争与runtime.futex底层行为

第一章:Go程序goroutin … Go程序goroutine阻塞超时却未触发select default?——channel关闭时机、recvq/sendq唤醒竞争与runtime.futex底层行为Read more

Posted in

Go语言面试“死亡三连问”标准应答:为什么不用select default?为什么sync.Map非首选?为什么testify不如原生testing?

第一章:Go语言面试“死亡三连问 … Go语言面试“死亡三连问”标准应答:为什么不用select default?为什么sync.Map非首选?为什么testify不如原生testing?Read more

Posted in

Go context取消传播失效全景图:cancelFunc未调用、select default分支、goroutine泄漏三重嵌套根因分析

第一章:Go context取消 … Go context取消传播失效全景图:cancelFunc未调用、select default分支、goroutine泄漏三重嵌套根因分析Read more

Posted in

Go context.WithTimeout失效之谜(deadline exceeded但goroutine未终止):cancel函数未调用、context值传递丢失、select default分支3大元凶

第一章:Go context.W … Go context.WithTimeout失效之谜(deadline exceeded但goroutine未终止):cancel函数未调用、context值传递丢失、select default分支3大元凶Read more