Devoxx Greece 2024 - Butcher Virtual Threads like a pro! by PIOTR PRZYBYL
HTML-код
- Опубликовано: 5 окт 2024
- Java™ 21 is real now. And so are virtual threads.
Everyone got excited about them, yet you prefer to keep your Java 8 job forever and you already have a nice plan to "accidentally" derail the migration to 21 by using virtual threads in a very, very unfortunate way. What a pity...
So you decided to come for this talk to look for some inspiration 😉
Okay, please join us to learn how NOT to use virtual threads, and see the potential performance pitfalls of using them the wrong way.
Is async log appender from log4j useful to mitigate this situation of a virtual thread mounting it after the log IO?
Good Talk
Virtual Threads in Java are such a terrible implementation. I wonder why they didn't look at other languages first.
What is the 'better' implementation in your opinion?
In which way? Any article to elaborate? We can mail java mailer group with your findings.
The answer is in this talk. The plan was to keep the virtual threads API consistent with regular threads API.
Also the other languages with better APIs (say async/await) are all single threaded.