- 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.
推薦閱讀
- 軟件項(xiàng)目管理(第2版)
- Beginning Java Data Structures and Algorithms
- Vue.js入門與商城開發(fā)實(shí)戰(zhàn)
- 三維圖形化C++趣味編程
- Python從入門到精通(精粹版)
- 自制編程語言
- Java EE 8 Application Development
- Android Wear Projects
- SQL Server實(shí)用教程(SQL Server 2008版)
- Building Serverless Architectures
- Getting Started with Electronic Projects
- AutoCAD基礎(chǔ)教程
- Java Web開發(fā)基礎(chǔ)與案例教程
- 深入實(shí)踐C++模板編程
- C++ Windows Programming