Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Java Multithreading and Parallel Programming Masterclass

Packt via Coursera

Overview

This masterclass is designed to transform your understanding of Java by delving into the intricacies of multithreading and parallel programming. Beginning with the basics, you'll learn what processes and threads are, and understand the differences between parallel, concurrent, asynchronous, and non-blocking operations. The course then progresses to advanced concepts such as thread management, including creation, prioritization, and exception handling, with practical projects like parallel text file processing. You'll explore the critical area of thread synchronization, mastering the use of synchronized keywords, locks, semaphores, and condition variables through detailed examples and projects. The course further delves into reusability with thread pools, explaining their implementation, performance monitoring, and effective sizing. Parallel algorithms and famous multithreading problems are tackled, providing you with the knowledge to apply these concepts to real-world scenarios. Real-world application modules cover integrating multithreading with modern Java frameworks like Spring Boot and RxJava and using JavaFX for UI responsiveness. By the end of this masterclass, you'll have a thorough grasp of multithreading, enabling you to write efficient, high-performance Java applications that leverage the power of concurrent programming. This course is ideal for intermediate to advanced Java developers who have a foundational understanding of Java programming. Prior experience with basic multithreading concepts is beneficial but not mandatory. Enthusiasts looking to enhance their performance optimization skills and tackle complex concurrency issues will find this course invaluable.

Syllabus

  • Introduction to the Course
    • In this module, we will introduce you to the course, providing an overview of what you will learn and achieve. We will also share tips on how to make the most out of your learning experience and discuss the prerequisites and code resources needed to follow along effectively.
  • General Multithreading Concepts
    • In this module, we will delve into fundamental concepts of multithreading, including the differences between processes and threads. We'll also explore various execution models and explain Amdahl's Law, providing a solid foundation for understanding multithreading.
  • Thread Management
    • In this module, we will cover the essentials of thread management, from creating threads to managing their priorities and states. You'll learn about handling thread exceptions, working with thread local variables, and addressing race conditions. Additionally, we'll dive into practical applications with a project on parallel text file processing.
  • Thread Synchronization - Part 1
    • In this module, we will explore the critical concept of thread synchronization. You'll learn about the synchronized keyword, locks, and various synchronization mechanisms, including semaphores and condition variables. Through practical examples, you'll gain a deep understanding of how to synchronize threads effectively.
  • Thread Synchronization - Part 2
    • In this module, we will continue our exploration of thread synchronization with advanced techniques. You'll work on projects involving CountDownLatch, barriers, phasers, and Exchangers. We'll also address deadlocks, the volatile keyword, and culminate with a project simulating a MapReduce job.
  • Thread Reusability
    • In this module, we will focus on the concept of thread reusability, emphasizing the importance of thread pools. You'll learn to use ThreadPoolExecutor, manage work queues, handle exceptions, and monitor performance. Additionally, we'll explore ForkJoinPools and the best practices for sizing thread pools.
  • Parallel Algorithms
    • In this module, we will introduce you to parallel algorithms, starting with Quick Sort and Binary Search. We'll discuss the efficiency and performance benefits of these parallel implementations. You'll also learn about naive and optimal methods for parallel matrix multiplication.
  • Famous Multithreading Problems
    • In this module, we will tackle some of the most famous multithreading problems. You'll learn about and implement solutions for the Dining Philosophers, Readers-Writers, and Sleeping Barber problems. We'll also discuss the No-Starve Mutex problem, providing practical examples and solutions.
  • Multithreading in the Real World
    • In this module, we will apply multithreading concepts to real-world scenarios. You'll learn to monitor JVM performance, run asynchronous workloads with Spring Boot, and use RxJava for building parallel data pipelines. Finally, we'll demonstrate how to unblock UIs with multithreading in JavaFX.

Taught by

Packt

Reviews

Start your review of Java Multithreading and Parallel Programming Masterclass

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.