O'Reilly logo

Clojure for Finance by Timothy Washington

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Concurrency and parallelism

Though slightly beyond the scope of this book, there may come a time when you will want to run simultaneous paths of execution. If this happens, it's good to know the options that Clojure provides for running concurrent or parallel code. We should, of course, understand the difference between the two.

Concurrency occurs when many threads of execution are running independent of each other. This can technically happen on a single-core chip where a processor multitasks between performing work in each thread. Concurrency makes resource-intensive software more usable by allowing many things to happen at once. Parallelism is made possible by computer processors with multiple cores. It occurs when multiple tasks physically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required