- 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.
推薦閱讀
- 深度學習經典案例解析:基于MATLAB
- JavaScript語言精髓與編程實踐(第3版)
- Oracle數據庫從入門到運維實戰
- Python編程:從入門到實踐
- Python High Performance Programming
- NGINX Cookbook
- 后臺開發:核心技術與應用實踐
- Android系統下Java編程詳解
- Getting Started with Web Components
- Linux Networking Cookbook
- Node.js Web Development
- 生成藝術:Processing視覺創意入門
- HTML+CSS+JavaScript前端開發(慕課版)
- D Cookbook
- R語言編程:基于tidyverse