Trying to understand internals of Java virtual threads
fazil mohamed
fazil.mes53 at gmail.com
Fri Sep 1 16:22:29 UTC 2023
Hi Siddharth
May be helpful for you. https://youtu.be/5E0LU85EnTI?si=KqjWQQC1LGq6cTS3
On Fri, 1 Sep, 2023, 9:36 pm 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/dfa09317/attachment.htm>
More information about the loom-dev
mailing list