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

  • 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.

主站蜘蛛池模板: 新津县| 任丘市| 乳源| 山东省| 成武县| 吉安市| 霍邱县| 金门县| 乌拉特中旗| 屏山县| 兴城市| 习水县| 云林县| 平凉市| 阳新县| 都昌县| 沙雅县| 贡山| 广平县| 志丹县| 旬阳县| 宿松县| 玉林市| 忻州市| 汝南县| 渭源县| 普陀区| 新蔡县| 武夷山市| 易门县| 曲麻莱县| 东乡县| 抚州市| 东宁县| 玉环县| 突泉县| 塔城市| 迭部县| 安塞县| 白银市| 长寿区|