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

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.   

主站蜘蛛池模板: 襄樊市| 吴川市| 平原县| 邹平县| 苗栗市| 镇宁| 荆门市| 隆尧县| 珠海市| 沈阳市| 甘孜县| 巴塘县| 楚雄市| 灵丘县| 包头市| 阳谷县| 吉水县| 宁武县| 政和县| 长治县| 古浪县| 周宁县| 洮南市| 东阿县| 深圳市| 日喀则市| 新建县| 资阳市| 长子县| 霞浦县| 双城市| 孟村| 内丘县| 崇仁县| 嘉黎县| 紫阳县| 庆元县| 河北区| 陆河县| 夏邑县| 通州区|