Java concurrency: threads, executors, race conditions

9 steps · about 3 h 10 min · Intermediate

  1. Java Concurrency Guide: Threads, Executors and Virtual Threads (guide, HowToDoInJava, 25 min)

    A current overview of the whole topic, so you know where threads, executors and thread safety fit before the details.

  2. Java concurrency (reference, Wikipedia, 15 min)

    It maps Thread, Runnable, Callable, join, interrupt and the memory model, giving you the vocabulary for the next steps.

  3. Java 8 Concurrency Tutorial: Synchronization and Locks (tutorial, winterbe, 25 min)

    You see a lost-update counter run on an executor, then fix it with synchronized and locks.

  4. Guide to the Synchronized Keyword in Java (guide, Baeldung, 20 min)

    It deepens synchronized methods and blocks and shows how to apply them to shared state.

  5. Core Java Concurrency - DZone Refcards (article, DZone, 20 min)

    It separates data races (visibility) from race conditions (ordering) and lists the java.util.concurrent tools.

  6. Java Concurrency: Threads, Executors, and CompletableFuture (article, Dotcube Technologies, 20 min)

    It shows why you submit tasks to an executor instead of calling new Thread(), then moves on to futures.

  7. Concurrency and Multithreading in Java: Best Practices and Pitfalls (article, MetaDesign Solutions, 15 min)

    It covers thread pool sizing and lock contention, the practical cost of over-synchronizing.

  8. Virtual Threads - Java (doc, Oracle Java Documentation, 30 min)

    The official guide to the modern alternative to pools: one cheap thread per task.

  9. Java's Concurrency Revolution: How Immutability and Virtual Threads Changed Everything! (article, DEV Community, 20 min)

    It brings you up to date on Java 25 guidance, including pinning, ScopedValue and immutability, and links to the JEPs.