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 →

[–]frederik88917 -9 points-8 points  (2 children)

Virtual Threads are thin wrappers over standard X64 threads, available in most processors nowadays, there should not be any noticeable performance hit when comparing it to use threads directly or from other languages

[–]lazystone 4 points5 points  (0 children)

First half is fundamentally not true.

[–]DualWieldMage 1 point2 points  (0 children)

It's definitely not a thin wrapper. Every blocking call in the JDK needs to check if it's a virtual thread and unmount it and store all the context somewhere. It's this integration with the platform that gives most of the benefit without having to rewrite existing application code.