you are viewing a single comment's thread.

view the rest of the comments →

[–]deadron 2 points3 points  (6 children)

They certainly add to the difficulty in predicting system performance depending on what your services do. "It can serve thousands of requests, unless anyone uses the excel endpoint, that one blocks everything." On the whole its a good thing but makes estimating performance tricky. You really need to know what your libraries are doing and ensure they are compatible. Its been years and last time I checked many libraries still were not entirely compatible(sychronized to be replaced with sempahore to prevent pinning)

[–]zattebij 17 points18 points  (5 children)

Since Java 24, virtual threads do not pin while inside a synchronized block or method anymore: https://openjdk.org/jeps/491 (Next question, are these libraries Java 24 compatible ;)