The BlockingQueue interface provides two methods put() and take() which are used implicitly in blocking the Producer and the Consumer thread respectively. The thread (Consumer) trying to remove item from an empty queue waits or is blocked until the Producer thread adds an item to the queue.
Nesta página do site você pode assistir ao vídeo on-line Producer Consumer Pattern Using a BlockingQueue in Java duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Java Lessons Made Easy 10 Junho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 670 vezes e gostou 16 espectadores. Boa visualização!