Teardown 03 - Mastering LinkedBlockingQueue and LinkedBlockingDeque

Advanced Java Concurrency Teardown — 6 Hours of Expert-Level Training

Teardown 03: Mastering LinkedBlockingQueue and LinkedBlockingDeque

Advanced Java Concurrency Teardown — 6 Hours of Expert-Level Training

If you've ever stared into the abyss of a thread dump at 3 a.m., squinting at a line in LinkedBlockingQueue.java, wondering why your beautifully architected system is behaving like a hung-over octopus, you're not alone. The blocking collections in java.util.concurrent are some of the most widely used and least understood parts of the Java platform. That ends now.

In this 6-hour advanced teardown, we go far beyond the javadoc and delve into the guts of two of the JDK's most critical concurrent data structures: LinkedBlockingQueue and LinkedBlockingDeque. These are not your run-of-the-mill queues. They’re finely-tuned synchronization tools, backed by linked nodes, subtle lock orchestration, and complex memory behavior that can make or break your system under load.

But this course isn’t just about learning what these classes do. It’s about learning why they behave the way they do, and when that behavior starts to bite. Along the way, we’ll investigate design trade-offs between lock splitting and unified locks, study thread contention patterns under pressure, and explore how the choice of queue can change the performance profile of your thread pool by orders of magnitude.

You’ll see:

  • Why LinkedBlockingQueue is the default for Executors.newFixedThreadPool(), and when that’s a terrible idea.
  • How LinkedBlockingDeque gives you not only FIFO but also LIFO semantics—and why that's useful for poison-pill shutdown and task prioritization.
  • Subtle JVM memory alignment issues that affect performance and GC pressure.
  • Real-world experiments measuring throughput, latency, and concurrency behavior under stress.

And here’s something you don’t often hear in a training pitch: we found and fixed seven real bugs in the OpenJDK while building this course. That’s right—while dissecting the implementation details, we uncovered race conditions, documentation mismatches, deadlocks and performance issues. These were not theoretical curiosities. These were real bugs in the JDK used by millions of developers, and they're now fixed. If nothing else, this speaks to the depth and rigor of what you’re about to experience.

You’ll get access to:

  • Hours of meticulously explained teardown videos
  • Performance experiments with GC flags and thread tuning
  • Exercises with real code, benchmarking techniques, and architectural insights
  • Commentary that brings decades of concurrency experience right to your IDE

This isn’t a beginner’s overview. It’s the kind of course you wish existed five years ago, the one that makes you say “Aha!” after your 100th ThreadPoolExecutor configuration. Whether you’re building scalable backends, tuning latency-sensitive systems, or just hungry to understand how Java concurrency really works, this course is for you.

Ready to join the ranks of Java developers who don’t just use concurrent collections—they master them?

Let’s begin.

Your Instructor


Dr Heinz M. Kabutz
Dr Heinz M. Kabutz

Heinz Kabutz is the author of The Java Specialists’ Newsletter, a publication enjoyed by tens of thousands of Java experts in over 150 countries. He has been a Java Champion since 2005.


Course Curriculum


  Teardown 03 - Linked Blocking Collections
Available in days
days after you enroll
  3.1. LinkedBlockingQueue
Available in days
days after you enroll
  3.1.1. LinkedBlockingQueue Code Teardown
Available in days
days after you enroll
  3.1.2. LinkedBlockingQueue Exercise 1
Available in days
days after you enroll
  3.2. SequencedCollection
Available in days
days after you enroll
  3.2.1. SequencedCollection Code Teardown
Available in days
days after you enroll
  3.2.2. SequencedCollection Exercise 2
Available in days
days after you enroll
  3.3. Deque
Available in days
days after you enroll
  3.3.1. Deque Code Teardown
Available in days
days after you enroll
  3.4. BlockingDeque
Available in days
days after you enroll
  3.4.1. BlockingDeque Code Teardown
Available in days
days after you enroll
  3.5. LinkedBlockingDeque
Available in days
days after you enroll
  3.5.1. LinkedBlockingDeque Code Teardown
Available in days
days after you enroll
  3.5.2. LinkedBlockingDeque Exercises
Available in days
days after you enroll
  3.6. Conclusion
Available in days
days after you enroll

Frequently Asked Questions


How long do I have access to a fully paid course?
How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own. Furthermore, if we move to another platform, we will offer you a free transfer of your account for all the courses that you have purchased.
Can I pay via PayPal?
Yes, you can for outright purchases, but not for recurring payments such as paying by installments.
Can I get back the EU VAT?
Absolutely. First off, be sure to enter the VAT number in the appropriate field during the payment process. Then contact Teachable and ask them to reimburse you the VAT.
May I share my login details with my colleagues?
Unfortunately not. The terms of usage are for a single license. Teachable tracks your progress through the curriculum, so you won't know how much you have watched. We offer discounts on bulk licenses by one company. Please contact us for bulk licensing.
May we use the course for running in-house courses?
You may, as long as each of the students in the class has a valid license for that course. For example, some companies run lunch time Design Patterns study groups using our material. This is an effective way to learn. Please contact us for bulk licensing.
What if I am unhappy with the course?
We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 14 days to tell us what you are unhappy about, and we will give you a full refund and deregister you from the course.
When does the course start and finish?
The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish. We do recommend putting time aside and setting goals to complete the course.
Can I watch the course offline during my commute?
Teachable have an iOS app that lets you watch offline. Android is not supported unfortunately.

Get started now!