By Andrii Rodionov
From Java Green threads to Loom project
25 years ago Java has started from the Green threads - a pseudo-concurrency paradigm. Java thread became a real native OS thread, after the appearance of the multi-core CPUs. Also, the paradigm has shifted to Thread pools with the usage of different Executors. But what is happening now, when even smartphones have several cores? The paradigm has shifted again to virtual threads (coroutines). Go has goroutines, Kotlin and Python - coroutines, and Java will have the project Loom.
In this talk we will review Java threads history, will understand coroutines usage, and will look to the future of Java virtual threads API.
Loom project in code
We will try to launch several examples with virtual threads using Loom Early Access Build