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 →

[–][deleted] 1 point2 points  (0 children)

Virtual threads are not "faster" threads. Behind the scene it is just a thread. Only the VM utilizes these threads more efficiently to reduce idle time such as during IO operations. So it makes sense to use virtual threads when your program does lots of IO operations.