When the max capacity is reached, producers are blocked until consumers have a chance to pull some items out.
在到达最大容量时,生产者便会被阻塞,直到某个消费者取出元素。
In order to keep the queue from growing too large, a Max capacity can be set.
为了避免队列元素过多,你也可以为它设置一个最大值。
In order to keep the queue from growing too large, a Max capacity can be set.
为了避免队列元素过多,你也可以为它设置一个最大值。
应用推荐