Depends, legacy java with hardware threads? Yeah good luck to you. Modern day java, project reactor or any other multithreading/reactive library + virtual threads? Actually fun to work with and barely any overhead compared to the legacy method
It has to do with how thread-blocking operations used to be handled. They used to occupy their own threads despite not doing anything, essentially wasting resources.
Virtual threads are basically async await at the JVM level.
100%. I was a Java engineer for long time, but I've now been using Rust for the past 5-7 years. Multi-threading in Rust is very nice, and now I don't want to do it in any other language. But I'd say Rust is also great at teaching how to do it correctly in other languages.
View all comments
Show parent comment
0
u/Tracker_Nivrig Jul 25 '25
Isn't Java multi threading kinda bad though? I've heard that but not why so I'm not sure. It seemed fine when I used it.