Modern JVM Multithreading
summary
Explains concrete tradeoffs and tools: Project Loom brings virtual threads so blocking calls become non-blocking at the VM level, libraries like Monix and cats‑effect already give fiber-based nonblocking primitives and async stack traces, and skunk implements the PostgreSQL protocol for 100% nonblocking DB notifications. Gives numbers: JVM thread ≈ 1 MB each, example of 1 million green threads on 10 JVM threads, recommends three pools (CPU ≈ CPU cores, blocking use cached/unbounded with semaphore limits, nonblocking 1–2 threads). Mentions r2dbc and IO ring as ecosystem directions.
AI-written summary · about
