<div dir="ltr">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: <a href="https://www.youtube.com/watch?v=6nRS6UiN7X0&list=PLX8CzqL3ArzW90jKUCf4H6xCKpStxsOzp&index=5">https://www.youtube.com/watch?v=6nRS6UiN7X0&list=PLX8CzqL3ArzW90jKUCf4H6xCKpStxsOzp&index=5</a><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><br></div>//Paul</div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 1, 2023 at 11:06 AM Siddharth Jain <<a href="mailto:siddhsql@gmail.com">siddhsql@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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,</div><div><br></div><div>S. </div></div>
</blockquote></div>