6 ms·
Is it possible today to have a compliant Java implementation using green threads? Seems like something that would appear in Azul first.
by _pmf_ 8y ago
Is it possible today to have a compliant Java implementation using green threads? Seems like something that would appear in Azul first.
- eiffel31 8y agoNeither the JVM nor the Java specifications impose restrictions on this, so theoretically I'd say it's possible.
- sgift 8y agoThere is a proposal to add fibers to Java: http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.htm...
- kitd 8y agoProject Loom [1] is intended to provide green threads, or 'fibers', at the JVM level. There have been other projects like Quasar from ParallelUniverse [2] that retrofits them by processing the compiled bytecode to enable saving/restoring the IP & stack. [1] http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.htm... [2] http://docs.paralleluniverse.co/quasar/ http://docs.paralleluniverse.co/quasar/
- eternalban 8y agoKilim [1] (afaik) was first in this space. (edit: just FYI) [1]: http://www.malhar.net/sriram/kilim/kilim_ecoop08.pdf http://www.malhar.net/sriram/kilim/kilim_ecoop08.pdf