会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
割肉机
博客园
首页
新随笔
联系
管理
订阅
2018年12月2日
golang中map并发读写问题及解决方法
摘要: 一、map并发读写问题 如果map由多协程同时读和写就会出现 fatal error:concurrent map read and map write的错误 如下代码很容易就出现map并发读写问题 func main(){ c := make(map[string]int) go func() {
阅读全文
posted @ 2018-12-02 14:32 割肉机
阅读(1956)
评论(0)
推荐(0)
编辑
公告