Virtual Threads are Better than ForkJoin Tasks That Block
Eric Kolotyluk
eric at kolotyluk.net
Sun Nov 21 19:43:23 UTC 2021
As I am trying to document my understanding of pre-loom and post-loom
paradigms, am I correct in claiming
*Virtual Threads are Better than ForkJoin Tasks That Block*
Looking at ForkJoinTask
<https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/ForkJoinTask.html>
there is a lot of complexity around designing and implementing tasks that
block. ForkJoin really seems better suited to things like Parallel Streams
focused on computation.
I am trying to create an informal list of problems that Project Loom
solves...
Cheers, Eric
More information about the loom-dev
mailing list