官术网_书友最值得收藏!

Summary

In this chapter, we have learned how we can synchronize concurrent access to shared data without locking. We found out what a memory model and atomic operation are and how the .NET Framework allows programmers to use them in code. We have discussed the major problems related to lock-free programming and made sure that atomicity is necessary, but not enough to make the concurrent code work right. Also, we have implemented a lock-free stack and queue and illustrated the lock-free approach with concrete examples.

In the next chapter, we will combine approaches that we have learned so far and see how we can structure a concurrent program to lower the performance overhead and optimize it, depending on what exactly the program does.

主站蜘蛛池模板: 黄大仙区| 绥中县| 荆门市| 长子县| 湘潭市| 寻甸| 乐业县| 郯城县| 凤阳县| 陇西县| 阿拉善右旗| 高淳县| 昭觉县| 三河市| 乐安县| 庆云县| 白水县| 益阳市| 囊谦县| 龙门县| 于都县| 泾源县| 通城县| 阿坝县| 达州市| 孝昌县| 琼中| 峨眉山市| 赤峰市| 清涧县| 荣昌县| 西盟| 成都市| 宁蒗| 册亨县| 孝感市| 虞城县| 伊春市| 阜宁县| 新兴县| 荆州市|