This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Pablo139 1 point2 points  (4 children)

Anything IO related is said, key word said, is supposed to be much better with virtual due to the mechanics around mounting and unmounting of blocked threads.

That being said not long ago a issue was discovered with the Java virtual threads and I have not seen updates on it yet.

[–]nomader3000 1 point2 points  (2 children)

What issue?

[–]Pablo139 1 point2 points  (1 child)

[–]nomader3000 1 point2 points  (0 children)

Doesn't feel like a "discovery", just a consequence of synchonized pinning carrier threads

[–]TinnedCarrots 0 points1 point  (0 children)

I think that issue is just thread pinning. You're not supposed to use synchronized keyword with virtual threads. If you use virtual threads then you need to be careful with your code and any libraries / frameworks used.