In a bounded blocking queue, the writer thread also needs to wait if the queue is full.
对于有大小限制的阻塞队列,如果队列满了,写线程也需要等待。
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,它非常适合这个模块:在队列满时,阻塞生产者线程,当队列空时,阻塞消费者线程。
应用推荐