In a bounded blocking queue, the writer thread also needs to wait if the queue is full.
对于有大小限制的阻塞队列,如果队列满了,写线程也需要等待。
If this queue is full, the application is not allowed to send any more data until the backlog is cleaned up.
如果这个队列满了,就不允许应用程序发送更多数据,直到清理完积压的队列为止。
If a connection indication arrives when the queue is full, the connection is refused.
如果连接指令到达之时队列已满,连接将被拒绝。
The queue is BlockingCollection which perfectly suits the needs of this module: it blocks the producer thread if the queue is full and blocks the consumer thread when queue is empty.
队列是BlockingCollection,它非常适合这个模块:在队列满时,阻塞生产者线程,当队列空时,阻塞消费者线程。
The queue is BlockingCollection which perfectly suits the needs of this module: it blocks the producer thread if the queue is full and blocks the consumer thread when queue is empty.
队列是BlockingCollection,它非常适合这个模块:在队列满时,阻塞生产者线程,当队列空时,阻塞消费者线程。
应用推荐