Can I use atomic to process concurrent problems for Golang map?

前端 未结 0 973
面向向阳花
面向向阳花 2020-12-17 10:07

In order to reduce the time waiting for map lock,when adding or deleting map elements, use Lock, when updating map values, use RLock and update the value using atomic, that\

相关标签:
回答
  • 消灭零回复
提交回复
热议问题