Aller au contenu

Concurrency

Modern concurrency approaches on the JVM: Coroutines and Loom

Concurrent programming allows running multiple tasks simultaneously, and was historically achieved mostly through threads. However, they are harder to work with and have some limitations. Modern concurrent programming brings new concepts that make concurrent programming easier and more efficient. Two of those concepts are structured concurrency and lightweight threads, which are implemented in the JVM ecosystem through Kotlin coroutines and Project Loom. Let's explore these two approaches.