...
Coroutines can be implemented very efficiently, thus they . They can be applied to all platforms that at the moment support threading, and could be used as a lightweight alternative to threading on platforms that don't.
...
2.5 What need of the Java community will be addressed by the proposed specification?
- JVM-based language implementation need coroutines to efficiently implement coroutine-like language features
- Server applications can use coroutines to keep more sessions alive, which leads to less latency and better resource utilization
- ...
2.6 Why isn't this need met by existing specifications?
The current java.lang.Thread system is designed for preemptive, operating-system level context switching. This inherently is orders of magnitude slower that user-level context switching.
2.7 Please give a short description of the underlying technology or technologies:
...
Overview
Content Tools
ThemeBuilder