I’ll have to look at it but generally speaking virtual threads are not for
us because they cannot be paused during blocking operations within the
kernel space so you can’t have ten virtual threads blocked on a kernel
action on a single process thread.

Java once had “green” threads back in version 3 or so but was removed and
migrated to full threads.

On Tue, May 19, 2020 at 3:36 AM Emmanuel Lécharny
<[email protected]> wrote:

> Hi!
>
> this is an interesting development in Java, the addition of Virtual
> Threads [1] through project Loom [2].
>
> This may impact MINA significantly, as we may simply use the new IO
> system [3] to leverage those virtual threads, simplifying the underlying
> implementation (bottom line: one sessions <-> one VT).
>
> There is a synthetic description in this page [4], worth reading.
>
>
> I don't know when we would expect this proposal to be integrated in
> Java, but we could expect something available around Java 15 or 16, for
> a final release in the LTS Java 17. A early-access version is already
> available [5].
>
> I wonder if this would be something we want to invest time beforehand,
> just to be ready when Loom get available.
>
>
> wdyt ?
>
>
> [1]
>
> https://wiki.openjdk.java.net/display/loom/Differences+between+regular+Threads+and+virtual+Threads
>
> [2] https://wiki.openjdk.java.net/display/loom
>
> [3] (https://wiki.openjdk.java.net/display/loom/Networking+IO)
>
> [4] https://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html
>
> [5] http://jdk.java.net/loom/
>
>
> --
> -----------------
> Emmanuel Lécharny
> CTO, Busit
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to