英文:
Do I have to lock when several go routines write in channel
问题
我必须锁定吗,如果两个Go协程写入同一个通道,或者这是由Go自动处理的?
英文:
Do I have to lock if two go routines write into the same channel or is this automatically handled by go?
答案1
得分: 5
通道是安全的,它是内置的。
英文:
Channels are safe, it's built in.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论