Chapter 11. Parallel Programming

Parallelism in Clojure

Chapter 6 spends a lot of time discussing how Clojure manages state safely in a concurrent environment. State management is definitely the trickiest part of concurrent programming, and the attention Clojure pays to getting state management right is well spent.

However, discussions of state management do not address how a program becomes parallel to begin with, and the best strategies for splitting the execution of a program among various threads. Although it's not as sticky a problem, it's still important to understand. Knowing how and when to distribute execution among multiple threads will allow you to maximize concurrency in your program, making it faster and guaranteeing scalability as ...

Get Practical Clojure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.