Trying to understand internals of Java virtual threads
Siddharth Jain
siddhsql at gmail.com
Fri Sep 1 16:06:10 UTC 2023
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/b7b0720a/attachment.htm>
More information about the loom-dev
mailing list