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

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.

主站蜘蛛池模板: 哈尔滨市| 鹤岗市| 射阳县| 隆化县| 普定县| 饶河县| 封丘县| 富裕县| 西乌珠穆沁旗| 乾安县| 涡阳县| 龙江县| 保山市| 正镶白旗| 元江| 莱西市| 铁力市| 临潭县| 竹溪县| 达拉特旗| 德化县| 灵山县| 桦南县| 自治县| 潜江市| 靖宇县| 湟中县| 安庆市| 太原市| 卫辉市| 格尔木市| 汾阳市| 富顺县| 贞丰县| 临西县| 寿光市| 云林县| 班戈县| 阿荣旗| 高阳县| 广灵县|