Implementing Producer Consumer using BlockingQueue, Locks/Conditions and Wait-Notify. Important: The last part about using wait-notify is incorrect. My mistake, sorry about that. The object used to wait/notify should be the same object used by threads to synchronize (to avoid IllegalMonitorStateException). So correct code should be similar to: synchronize(sharedQ){ (); } synchronize(sharedQ){ (); } That was a basic mistake which I should have caught. I feel bad about misleading the initial viewers. Sorry. Channel ---------------------------------- Master difficult programming concepts in few minutes. I try to explain difficult concepts like Java concurrency in simple to understand manner. Explore videos on topics like Spring Boot, Cloud Foundry, Java 8 and more. I am happy to clarify your doubts. Ask me anything in the comments. Also happy to take requests for new videos. New video added every Sunday. Subscribe or explore the channel - Current Playlists ---------------------------------- Java Executor Service - Java Concurrency - Spring Boot 2.0 - Java 8 - Intellij IDEA Shortcuts - Popular Videos ---------------------------------- Executor Service - Introduction to CompletableFuture - Understand how ForkJoinPool works - Java Memory Model in 10 minutes - Volatile vs Atomic - What is Spring Webflux -










