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

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.

主站蜘蛛池模板: 克拉玛依市| 阿巴嘎旗| 宁明县| 扬州市| 泗洪县| 洮南市| 嘉定区| 秦皇岛市| 高尔夫| 庆城县| 广汉市| 肥西县| 满洲里市| 武威市| 仁怀市| 石首市| 望江县| 望江县| 夏河县| 如东县| 彰化县| 临湘市| 柳林县| 武冈市| 合肥市| 博乐市| 南陵县| 淮滨县| 玉溪市| 安国市| 屏南县| 巴中市| 黄陵县| 穆棱市| 邹城市| 育儿| 兴化市| 古丈县| 东阳市| 永春县| 双鸭山市|