5 ms·
or, Java Virtual Threads and chill.
by cbm-vic-20 5d ago
or, Java Virtual Threads and chill.
- biorach 5d agoNo. Because concurrency vs parallelism
- MichaelNolan 5d agoHow does parallelism come into play for this conversation? Async/await is a concurrency construct. And Java’s virtual threads are also a concurrency construct. Neither of them have anything to do with parallelism. Or am I misunderstanding something?
- PhilipRoman 5d agoI'd say Java's virtual threads are also a parallelism construct (at least in the performance sense, not logical guarantees), since they're scheduled on a pool.
- mitxela 5d agoAlso formerly known as goroutines Both efforts, instead of trying to avoid threads because they are expensive, simply asked why they have to be expensive and then made them not expensive.
- tcfhgj 5d agothey are still more expensive than compiled async await, also mixing compute and io-bound work can cause issues
- yxhuvud 5d agoMost of the dimensions exist in the threaded world as well, only the dimensions wasn't as explored at that point so the choices are usually not what would have been chosen today.