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

Java    |    Intermediate
  • 9 videos | 50m 54s
  • Includes Assessment
  • Earns a Badge
Rating 4.9 of 8 users Rating 4.9 of 8 users (8)
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

  • 2m 19s
  • 7m 58s
    In this video, learn how to define a producer task that can run concurrently with a consumer using a shared queue. FREE ACCESS
  • Locked
    3.  The Consumer Task
    5m 34s
    In this video, you will develop a consumer task that works with a concurrent producer by sharing a buffer. FREE ACCESS
  • Locked
    4.  Running the Producer and Consumer
    6m 12s
    Upon completion of this video, you will be able to recognize the behavior of producer and consumer threads when working with a shared bounded buffer. FREE ACCESS
  • Locked
    5.  Tweaking the Producer and Consumer
    8m 11s
    In this video, learn how to use a ReentrantLock to access the shared queue for the Producer-Consumer problem. FREE ACCESS
  • Locked
    6.  The Condition Object
    8m 12s
    After completing this video, you will be able to recognize the role of conditions in enabling different threads to wait on different conditions on the same object. FREE ACCESS
  • Locked
    7.  Scaling the Producers and Consumers
    4m 8s
    In this video, you will learn how to verify the validity of a solution to the Producer-Consumer problem with multiple producer and consumer threads. FREE ACCESS
  • Locked
    8.  The ArrayBlockingQueue
    6m 48s
    In this video, learn how to implement a solution to the Producer-Consumer problem using Java's built-in ArrayBlockingQueue. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 3.0 of 3 users Rating 3.0 of 3 users (3)
Rating 4.5 of 84 users Rating 4.5 of 84 users (84)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 68 users Rating 4.6 of 68 users (68)
Rating 4.9 of 8 users Rating 4.9 of 8 users (8)
Rating 4.4 of 50 users Rating 4.4 of 50 users (50)