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

Thread synchronization

Up until now, whatever examples we have seen in this book had all threads independent of each other. But rarely, in real life, do you find examples where threads operate on data and terminate without passing results to any other threads. So there has to be some mechanism for threads to communicate with each other, and that is why the concept of shared memory is explained in this section. When many threads work in parallel and operate on the same data or read and write from the same memory location, there has to be synchronization between all threads. Thus, thread synchronization is also explained in this section. The last part of this section explains atomic operations, which are very useful in read-modified write conditions.   

主站蜘蛛池模板: 平阴县| 海安县| 沙田区| 太保市| 琼中| 柯坪县| 卢龙县| 安远县| 富裕县| 北安市| 晋中市| 新乐市| 朝阳区| 台安县| 丰城市| 伊金霍洛旗| 枣强县| 天全县| 五原县| 屯门区| 饶平县| 邵武市| 霍林郭勒市| 宜宾市| 鄂伦春自治旗| 怀宁县| 民丰县| 泰宁县| 定边县| 普陀区| 汉阴县| 石首市| 新竹县| 任丘市| 舞阳县| 施甸县| 晋州市| 通州区| 博湖县| 保定市| 古交市|