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

  • Mastering Clojure
  • Akhil Wali
  • 101字
  • 2021-07-09 20:18:03

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.

主站蜘蛛池模板: 泸水县| 清苑县| 阿瓦提县| 临洮县| 临颍县| 高平市| 鲁山县| 图们市| 湖北省| 南郑县| 阿拉善左旗| 凤山市| 卫辉市| 凤冈县| 西乌珠穆沁旗| 大渡口区| 高青县| 贵德县| 巴林左旗| 通许县| 青神县| 鹤峰县| 沈丘县| 乐山市| 景宁| 宝兴县| 广汉市| 赤壁市| 阿拉善左旗| 阿尔山市| 垣曲县| 富宁县| 化州市| 绥中县| 台北县| 巫山县| 驻马店市| 准格尔旗| 深水埗区| 宁津县| 滦平县|