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

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.

主站蜘蛛池模板: 扬中市| 百色市| 利辛县| 景谷| 石河子市| 佛坪县| 河北区| 敦煌市| 兰考县| 五原县| 璧山县| 义马市| 高台县| 含山县| 荥经县| 鸡东县| 万年县| 和田市| 铁岭市| 和田县| 漳浦县| 万源市| 翁牛特旗| 永康市| 乌兰县| 商都县| 阿拉善右旗| 东兴市| 苏尼特左旗| 桑植县| 桓台县| 凌海市| 湖州市| 玉田县| 阿克陶县| 扶风县| 洞口县| 新余市| 苗栗市| 开阳县| 宜都市|