Java Threads Demystified by Pearson
2h 56mIntermediate2026-03-09
Authors

Pearson
Course details
Modern computer architectures rely on multiple ultrafast cores, which can only be fully utilized by multithreaded programs. To write such programs, you need to know how threads work, how to prevent race conditions, how to get thread cooperation, and what Java platform utilities are built on top of threads, like executors and thread-safe collections. In this course, discover how to leverage the Java threading model effectively by learning about the main features: synchronization, interrupts, intrinsic locks, and explicit locks. Explore Java threads and virtual threads introduced in Java 21. Learn how to write multithreaded code that avoids thread-safety issues and performance pitfalls.
Learning objectives
Describe the basic features of threads: synchronization, interrupts, intrinsic locks, and explicit locks.
Write simple thread-safe classes.
Use concurrent collections and executors.
List the pitfalls and common types of bugs in multithreaded programs.
Describe when to use virtual threads.
Learning objectives
Describe the basic features of threads: synchronization, interrupts, intrinsic locks, and explicit locks.
Write simple thread-safe classes.
Use concurrent collections and executors.
List the pitfalls and common types of bugs in multithreaded programs.
Describe when to use virtual threads.
Concepts
Java Threads
- Introduction to Java concurrency
- Threads and synchronization
- Designing a thread-safe class
- Tasks and task execution
- Concurrent utilities
- Virtual threads
- Conclusion