Multithreading in Java

Lessons in this section

  1. Introduction to Threads

    Learn processes vs threads, the thread lifecycle, creating threads with Thread and Runnable, and using start, run, sleep, join and priorities.

  2. Synchronization

    Keep shared data correct across threads: race conditions, thread safety, synchronized methods and blocks, and how to avoid deadlocks.