Multithreading and Concurrency in Java: Concurrency & the Producer-Consumer Problem

Java SE 13
  • 9 Videos | 54m 24s
  • Includes Assessment
  • Earns a Badge
The Producer-Consumer problem is a common issue to address when we have concurrent producer and consumer threads working with a bounded buffer. Solving this problem covers a variety of synchronization mechanisms in Java, and this course covers the implementation of synchronization blocks, locks, Condition objects, and Java's built-in data structures.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    define a producer task that can run concurrently with a consumer using a shared queue
    develop a consumer task that works with a concurrent producer through a shared buffer
    recognize the behavior of producer and consumer threads when working with a shared bounded buffer
    use a ReentrantLock to access the shared queue for the Producer-Consumer problem
  • recognize the role of conditions in enabling different threads to wait on different conditions on the same object
    verify the validity of a solution to the Producer-Consumer problem with multiple producer and consumer threads
    implement a solution to the Producer-Consumer problem using Java's built-in ArrayBlockingQueue
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 19s
    UP NEXT
  • Playable
    2. 
    Simulating the Producer-Consumer Problem
    7m 58s
  • Locked
    3. 
    The Consumer Task
    5m 34s
  • Locked
    4. 
    Running the Producer and Consumer
    6m 12s
  • Locked
    5. 
    Tweaking the Producer and Consumer
    8m 11s
  • Locked
    6. 
    The Condition Object
    8m 12s
  • Locked
    7. 
    Scaling the Producers and Consumers
    4m 8s
  • Locked
    8. 
    The ArrayBlockingQueue
    6m 48s
  • Locked
    9. 
    Course Summary
    1m 32s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.