Loading…
Loading…
Java
Modern concurrency on Java 25+ — platform and virtual threads, the scheduler, structured concurrency, scoped values, reactive comparisons, and how Spring Boot, Quarkus, Micronaut, Helidon and Jakarta EE adopt them. 50 articles with practice quizzes.
Sixteen questions on what changed release by release: virtual threads final in 21, synchronized without pinning in 24, scoped values final in 25, and the long road of structured concurrency from subclasses to open() and Joiner, the Java 26 and 27 refinements, and final in 28.
kvi5hnuCode Sprout team member1 minTwenty edge cases of modern Java concurrency that surprise experienced developers: virtual thread priorities and names, semaphores without owners, null scoped values, cancelling a CompletableFuture, pool sizing with unbounded queues, and StructuredTaskScope's strict rules.
kvi5hnuCode Sprout team member1 minTwenty questions of the kind interviewers ask about modern Java concurrency: platform vs virtual threads, pinning, pools and limits, CompletableFuture, structured concurrency, scoped values vs ThreadLocal, reactive programming, and production diagnostics.
kvi5hnuCode Sprout team member1 minThe final exam for the modern Java concurrency course: thirty questions across all seven parts, from platform threads, pools and CompletableFuture through virtual threads, the scheduler, structured concurrency, scoped values, reactive streams and frameworks.
kvi5hnuCode Sprout team member1 minSixteen questions on Part 7 of the modern Java concurrency course: virtual threads in Spring Boot, Quarkus, Micronaut, Helidon and Jakarta EE, the limits and pitfalls that appear after the switch, and the adoption checklist.
kvi5hnuCode Sprout team member1 minEighteen questions on Part 6 of the modern Java concurrency course: blocking and non-blocking I/O, ByteBuffer, selectors and event loops, CompletableFuture, reactive streams and the Flow API, backpressure, and choosing between reactive code and virtual threads.
kvi5hnuCode Sprout team member1 minSixteen questions on Part 5 of the modern Java concurrency course: passing context, ThreadLocal's mutability, leaks and inheritance problems, the ScopedValue API, rebinding, and inheritance of bindings into StructuredTaskScope subtasks.
kvi5hnuCode Sprout team member1 minTwenty questions on Part 4 of the modern Java concurrency course: StructuredTaskScope rules, forking and joining, built-in and custom joiners, exceptions and timeouts, memory visibility, nested scopes, thread dumps, and the API's changes from Java 21 to Java 28.
kvi5hnuCode Sprout team member1 minTwenty questions on Part 3 of the modern Java concurrency course: thread pools from scratch, ThreadPoolExecutor's decision order and rejection policies, Callable and Future, fork/join and work stealing, the virtual-thread scheduler and pollers, and continuations.
kvi5hnuCode Sprout team member1 minTwenty questions on Part 2 of the modern Java concurrency course: virtual-thread properties, Little's Law, mounting and unmounting, semaphores and rate limits, pinning before and after Java 24, native calls, thread-locals, JFR, thread dumps and migration.
kvi5hnuCode Sprout team member1 minTwenty questions on Part 1 of the modern Java concurrency course: concurrency vs parallelism, starting and interrupting threads, platform-thread costs, fan-out, executors and futures, false sharing, CompletableFuture and reactive trade-offs.
kvi5hnuCode Sprout team member1 minThe whole course in one place: what virtual threads, structured concurrency and scoped values each replace, how they fit together in one request, a release timeline from Java 19 to 28, a problem-to-tool cheat sheet, common myths, and an adoption checklist.
kvi5hnuCode Sprout team member8 minHow the other major Java frameworks adopt virtual threads: Quarkus's @RunOnVirtualThread on an event-loop core, Micronaut's BLOCKING executor, Helidon 4's virtual-thread web server, and Jakarta Concurrency 3.1's virtual managed executors. Plus a demo of why the annotation matters.
kvi5hnuCode Sprout team member8 minTurning on virtual threads in Spring Boot with spring.threads.virtual.enabled: what moves to virtual threads (Tomcat, @Async, @Scheduled, HTTP clients) and what doesn't. A measured before-and-after run, manual setup for older versions, and the pitfalls: keep-alive, lost limits, pinning, monitoring.
kvi5hnuCode Sprout team member9 minThe same trip quote written with Project Reactor and with virtual threads and structured concurrency: concurrency, timeouts, fallbacks, bounded fan-out and stack traces compared. Where each model wins, how to mix them safely, and a decision guide.
kvi5hnuCode Sprout team member8 minWhat backpressure is and why unbounded buffers fail. Demand with request(n), SubmissionPublisher's blocking submit and dropping offer, Reactor's limitRate and drop, latest and buffer strategies, and the virtual-thread equivalents: bounded queues and semaphores.
kvi5hnuCode Sprout team member8 minReactive streams model many asynchronous values with demand-driven flow. The Reactive Streams protocol and java.util.concurrent.Flow, SubmissionPublisher and a custom Processor, then a tour of Project Reactor: lazy pipelines, async steps, errors, cold and hot streams, schedulers.
kvi5hnuCode Sprout team member8 minHow event-driven frameworks such as Netty and Vert.x run application handlers on a few event-loop threads, why a single blocking call stalls them, and how asynchronous APIs evolved from nested callbacks to composable CompletableFuture pipelines with error handling and timeouts.
kvi5hnuCode Sprout team member8 minA complete single-threaded NIO server: Selector, SelectionKey interest and ready sets, accepting and reading without blocking, partial reads with compact(), partial writes with OP_WRITE, offloading slow work, and waking the loop safely from other threads.
kvi5hnuCode Sprout team member9 minHow blocking java.io sockets tie a thread to each connection, why thread pools cap a blocking server, and how java.nio channels, ByteBuffer and non-blocking mode let one thread serve many connections. Buffer flip and compact, and where virtual threads change the trade-off.
kvi5hnuCode Sprout team member8 min