WeSearch

Java Virtual Threads: The Pinning Problem and the Fix in Java 24

· 0 reactions · 0 comments · 1 view
Java Virtual Threads: The Pinning Problem and the Fix in Java 24

I came across an internal engineering writeup at my org where a production service stalled after adopting virtual threads, a feature introduced in Java 21 that lets you run millions of lightweight threads on a handful of OS threads. Switching back to platform threads fixed it immediately. Turns out Netflix hit the exact same problem of virtual threads getting pinned inside synchronized blocks, exhausting all carrier threads, and hanging the application. I put together a write-up with a demo one

Original article
Reddit
Read full at Reddit →
Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Email

Discussion

0 comments

More from Reddit