TAG · 2 ARTICLES
#virtual-threads
Virtual threads
- JAVAJava 21 features for AI apps: records, sealed types and moreLLM code has three hard parts: messy JSON, replies that come in many shapes, and calls that take seconds. Modern Java has a feature for each. Here is how records, sealed types, pattern matching, text blocks and virtual threads fit AI work.17 Nov 2026 · 8 min
- 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