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

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.   

主站蜘蛛池模板: 苏尼特右旗| 冕宁县| 林州市| 洛浦县| 丹寨县| 原平市| 钟山县| 九台市| 濮阳县| 邳州市| 蒙自县| 庆安县| 邹平县| 牟定县| 朝阳县| 安化县| 三台县| 房山区| 绥芬河市| 屏东市| 肇州县| 郸城县| 安顺市| 灵台县| 北辰区| 永春县| 五指山市| 垦利县| 会同县| 华容县| 罗甸县| 且末县| 喀喇沁旗| 理塘县| 海口市| 全州县| 醴陵市| 平潭县| 北票市| 石泉县| 安岳县|