Skip to content
SparkTime, home

Tagged #multithreading

GuideTechnology

16 min read

Executors, Futures, Concurrent Collections and Virtual Threads

The concurrency tools you should actually use: thread pools with ExecutorService, Callable and Future, producer-consumer with BlockingQueue, ConcurrentHashMap and friends, CompletableFuture pipelines, and virtual threads from Java 21, including what they do and do not do.

GuideTechnology

15 min read

Concurrency Fundamentals: Threads, Races and Synchronisation

Concurrency taught from the problems: lost updates, visibility and deadlock. Threads and the Java Memory Model, race conditions and atomicity, synchronized, volatile, atomic classes and locks, with runnable demonstrations and honest advice on what each tool does and does not guarantee.