TAG · 2 ARTICLES

#concurrency

Concurrency

  1. JAVAPython async and await vs Java CompletableFuture and virtual threadsLLM calls are slow and mostly waiting. Python's async lets one thread wait on many of them at once, pausing at every await. Here is how async def, await and asyncio.gather compare with CompletableFuture and virtual threads, and the rules that keep async code from freezing.29 Nov 2026 · 5 min
  2. JAVAJava 21 virtual threads explained: before and afterFor more than two decades every Java thread was glued to an operating-system thread, and a thread waiting on a database held that OS thread hostage. Virtual threads cut the glue. Here is the old model, the problem it caused, and exactly what virtual threads fix.16 Nov 2026 · 9 min