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

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.

主站蜘蛛池模板: 昌江| 连平县| 武宁县| 彰化市| 合江县| 永川市| 安义县| 盈江县| 平度市| 巴青县| 无极县| 浪卡子县| 临湘市| 塔城市| 临泉县| 武鸣县| 乌兰县| 富川| 鄂托克前旗| 兴海县| 怀来县| 泰和县| 临夏县| 霍林郭勒市| 湖州市| 内黄县| 株洲市| 井冈山市| 大宁县| 灌云县| 安福县| 香河县| 买车| 普格县| 青岛市| 宝坻区| 西安市| 农安县| 彰化市| 瑞昌市| 达州市|