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

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.

主站蜘蛛池模板: 房产| 松滋市| 永济市| 石狮市| 呼伦贝尔市| 建平县| 吴忠市| 西平县| 石家庄市| 资兴市| 漠河县| 正安县| 诏安县| 阿克苏市| 方正县| 延川县| 许昌县| 龙胜| 金乡县| 安康市| 汉沽区| 株洲县| 曲水县| SHOW| 望奎县| 普兰店市| 利辛县| 阳朔县| 百色市| 布尔津县| 武鸣县| 盖州市| 淳安县| 云梦县| 富顺县| 韶山市| 吉林市| 宁夏| 沭阳县| 锦州市| 永平县|