The count of unfinished tasks goes up whenever an item is added to the queue.
在将一个项目添加到该队列时,未完成的任务的总数就会增加。
When that consumer is available, the element is passed directly between consumer and producer, never literally getting added to the blocking queue.
当这个消费者出现时,这个元素就直接在消费者和生产者之间传递,永远不会加入到阻塞队列中。
The messages are loosely ordered in the queue; they are not really stored in the order in which they are added to the queue.
消息在队列中的次序是宽松的;它们实际上并不按照在队列中添加消息的次序存储。
应用推荐