Blocking Queue
Noun · Development
Definitions
A thread-safe queue whose producers or consumers wait when the queue is full or empty, making it useful for coordinating work between concurrent workers. Blocking queues are a standard pattern in producer-consumer systems because they combine buffering with built-in synchronization.
In plain English: A queue that makes producers or consumers wait when it cannot immediately proceed.
Example: "The worker pool used a blocking queue so idle threads could sleep until jobs arrived instead of busy polling for work."