Some generic questions about the virtual thread.
nadeesh t v
nadeeshtv at gmail.com
Sun Nov 10 07:59:48 UTC 2024
Hello,
I have some generic questions about virtual threads after reading the JEP
444 <https://openjdk.org/jeps/444>, JEP 491 <https://openjdk.org/jeps/491> .
I did not find those answers by googling or in some Devoxx/JVMLS talks
that I have watched. That’s why I am reaching out here. Please redirect me
if it’s not the appropriate place.
What is the reason behind making a virtual thread daemon thread?
Does it mean we should use virtual thread only if we do not care about its
completion before shutdown of JVM?
IN JEP 444, I could see `The scheduler does not compensate for pinning by
expanding its parallelism.` Is it based on the assumption that other tasks
may wait for the same lock or is it because of some other technical
reasons around pinning?
In JEP 491 <https://openjdk.org/jeps/491>, I could see the in-depth detail
of the reason behind pinning for synchronized cases. Could someone share
what would be the reason behind pinning in case of the JNI method
invocation? I could see the JEP mentions `presence of native frame on
stack` . Therefore, I am guessing it’s something around that but if someone
could give a bit more detail about it that would be helpful.
--
Thanks and Regards,
Nadeesh TV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20241110/b58e979f/attachment.htm>
More information about the loom-dev
mailing list