Java Threads
1h 14mAdvanced2022-06-16
Authors

Buddhini Samarakkody
Java Engineer, Author, Instructor
Course details
Java threads allow programs to execute multiple blocks of code at the same time. This advanced Java course with instructor Buddhini Samarakkody focuses on threads and concurrency, and is useful to Java programmers and even non-Java programmers who want to get a quick and practical understanding of these important concepts. Buddhini first introduces you to Java threads and the concept of concurrency. She also explains: The difference between multitasking and multithreading; the difference between a process and a thread; how to create and start a thread; and how to use different methods of the thread class.
Skills covered
JavaOracleProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Learning about Java threads
- 02 - What you should know
1. Java Threads and Concurrency Overview
- 03 - What is concurrency
- 04 - Processes vs. threads
- 05 - Multitasking vs. multithreading
- 06 - The main thread
- 07 - Daemon vs. non-daemon threads
2. Creating and Starting a Thread
- 08 - Thread class and Runnable interface
- 09 - Creating a thread - Extending the Thread class
- 10 - Creating a thread - Implementing the Runnable interface
- 11 - Starting a thread
- 12 - Extend a thread or implement a Runnable
- 13 - Challenge - Webinar polling system
- 14 - Solution - Webinar polling system
3. Methods of the Thread Class
- 15 - Pausing execution of a thread
- 16 - Interrupting a thread
- 17 - Implementing thread interruptions
- 18 - Making a thread to wait until another thread terminates
- 19 - Other useful methods of the Thread class
- 20 - Challenge - Webinar polling system
- 21 - Solution - Webinar polling system
Conclusion
- 22 - Next steps
Related courses
- Java Threads Demystified by Pearson
- Advanced Java: Threads and Concurrency
- Java EE: Concurrency and Multithreading
- Java Practice: Exception Handling
- Java 25 for Professionals with Jetbrains AI Assistant
- Java Concurrency Troubleshooting: Latency and Throughput
- Top Features of Java 21
- Parallel and Concurrent Programming with Java 1
Related learn paths
- Advance Your Java Skills
- Prepare for the Google Associate Android Developer Certification
- Getting Started with Python
- Prepare for the CompTIA Server+ (SK0-004) Exam
- Advance your Node.js Skills
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Become a Java Programmer
- Become a Java EE 7 Developer