Multithreading and Concurrency in Java: Concurrency & the Producer-Consumer Problem
Java SE 13
| Intermediate
- 9 Videos | 50m 54s
- 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 coursedefine a producer task that can run concurrently with a consumer using a shared queuedevelop a consumer task that works with a concurrent producer through a shared bufferrecognize the behavior of producer and consumer threads when working with a shared bounded bufferuse 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 objectverify the validity of a solution to the Producer-Consumer problem with multiple producer and consumer threadsimplement a solution to the Producer-Consumer problem using Java's built-in ArrayBlockingQueuesummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 19sUP NEXT
-
2.Simulating the Producer-Consumer Problem7m 58s
-
3.The Consumer Task5m 34s
-
4.Running the Producer and Consumer6m 12s
-
5.Tweaking the Producer and Consumer8m 11s
-
6.The Condition Object8m 12s
-
7.Scaling the Producers and Consumers4m 8s
-
8.The ArrayBlockingQueue6m 48s
-
9.Course Summary1m 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.