Learning paths

Multithreading: beginner to advanced

Start with what a thread is, then learn why shared data breaks and how to protect it, then the tools real systems use: thread pools, CompletableFuture, concurrent collections and virtual threads.

  • For: You know basic Java and want to understand threads properly, step by step.
  • By the end: You can write correct concurrent code, explain race conditions and deadlocks, and answer multithreading interview questions confidently.
  • Size: 9 lessons (38 min of reading, plus time to try the code), beginner to advanced
  1. ExecutorService, ThreadPoolExecutor and FutureMultithreading, advanced, 6 min
  2. Fork/Join framework and parallel streamsMultithreading, advanced, 3 min
  3. CompletableFutureMultithreading, advanced, 3 min
  4. Virtual threadsMultithreading, advanced, 3 min
  5. HashMap vs ConcurrentHashMapCollections, advanced, 3 min
  6. Fail-fast vs fail-safe iteratorsCollections, intermediate, 3 min

Other paths