3 ms·
or, Java Virtual Threads and chill.
by cbm-vic-20 15d ago
or, Java Virtual Threads and chill.
- biorach 15d agoNo. Because concurrency vs parallelism
- MichaelNolan 15d 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 14d 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 14d 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 14d agothey are still more expensive than compiled async await, also mixing compute and io-bound work can cause issues
- yxhuvud 14d 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.