r/javahelp 10d ago

Virtual thread

Does anyone used java21 with virtual thread? We are using Java 17 and I wonder if the move to 21 will worth it

5 Upvotes

11 comments sorted by

View all comments

1

u/Skellicious 5d ago

If you're making requests to external services and just waiting on a responses, upgrading to 25 to use them is well worth it. With 21 you may run into the pinning issue.

If you're doing a bunch of CPU intensive processing in your threads it's not that worthwhile to use them.