3 ms·
Java doesn't do cooperative multitasking (sorta aka greenthreading). That's why there are all these promise/future/whatever frameworks that do it, vs Golang, Ru
by hot_gril 2y ago
Java doesn't do cooperative multitasking (sorta aka greenthreading). That's why there are all these promise/future/whatever frameworks that do it, vs Golang, Rust, and even JS where it's just part of the runtime.
Pretty sure JVM is also a lottt more overhead.
- pjmlp 2y agoYes it does, that is why originally there were green and red threads, the language specification doesn't require which kind exactly a JVM implementation should provide. Also since Java Loom project, it has virtual threads. Additionally, since at least a decade you could your own thread scheduling if feeling so inclined to do some low level coding, as the scheduling architecture is customisable.