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

Summary

We have explored various constructs that can be used to create concurrent and parallel tasks in Clojure. You learned to handle shared mutable state through the use of reference types, namely vars, refs, atoms and agents. As we described earlier, the dining philosophers problem can be easily implemented using refs and agents. You also studied how tasks can be executed in parallel. Lastly, we explored the claypoole library, which allows us to control the amount of parallelism used for a given computation.

In the next chapter, we will continue our exploration of parallelism in Clojure through the use of reducers.

主站蜘蛛池模板: 平原县| 基隆市| 华容县| 临朐县| 微博| 徐汇区| 潮安县| 吉木乃县| 桐柏县| 翁牛特旗| 湛江市| 韩城市| 松桃| 平遥县| 沅陵县| 荥经县| 塔城市| 喀喇沁旗| 康平县| 杨浦区| 浑源县| 龙井市| 汝阳县| 潞城市| 乌兰县| 古浪县| 会宁县| 紫阳县| 清远市| 上犹县| 吉安县| 海淀区| 民县| 阿巴嘎旗| 吴川市| 南皮县| 云安县| 翁牛特旗| 茶陵县| 遂昌县| 左贡县|