Trying to understand internals of Java virtual threads
Paul Bjorkstrand
paul.bjorkstrand at gmail.com
Fri Sep 1 16:17:15 UTC 2023
Coincidentally, I happen to be listening to/watching Ron's presentation on
continuation at JVMLS 2023, and am at the part near the beginning where he
is talking about how it works. Here's the video:
https://www.youtube.com/watch?v=6nRS6UiN7X0&list=PLX8CzqL3ArzW90jKUCf4H6xCKpStxsOzp&index=5
//Paul
On Fri, Sep 1, 2023 at 11:06 AM Siddharth Jain <siddhsql at gmail.com> wrote:
> Hello,
>
> I just have a simple question re: java virtual threads which is how does
> the virtual thread know when its time to yield to another thread? as
> example say i am running code using the synchronous pg JDBC driver inside a
> vthread. there is nothing in the pg JDBC driver per se that tells a vthread
> to yield when its waiting for response back from the database. in fact the
> driver is not even aware of any vthread. is the yield logic something
> managed at the JVM layer? how? any details would be appreciated. thanks,
>
> S.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230901/403a41b7/attachment.htm>
More information about the loom-dev
mailing list