ch9/ch9-02 #212
ch9/ch9-02
#212
Replies: 3 comments
-
这两章不错,嘿嘿 确实在实力工作中在类似的地方栽过,学到了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
在stackoverflow底下的评论里也有不少人反对“拒绝可重入锁”这种设计。虽然说可重入锁确实存在一些问题和弊端,但不可重入的mutex难道就不会导致死锁之类的问题吗?它也会影响开发者的代码设计,例如影响封装效果、抬高代码复杂度。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
使用def mutex.unlock会导致函数结束了才释放锁,如果函数逻辑小还好,如果锁的范围太大了,影响效率。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ch9/ch9-02
中文版
https://gopl-zh.github.io/ch9/ch9-02.html
Beta Was this translation helpful? Give feedback.
All reactions