Designing a concurrent blocking bounded queue.
设计有大小限制的并发阻塞队列。
ArrayBlockingQueue: a bounded queue backed by an array.
ArrayBlockingQueue:一个由数组支持的有界队列。
LinkedBlockingQueue: An optionally bounded queue backed by linked nodes.
LinkedBlockingQueue:一个由链接节点支持的可选有界队列。
The server is based on a bounded queue, and has a single worker thread running in a block mode and runs as if in event driven mechanism.
该服务器基于有界队列数据结构,采用单独线程阻塞模式读写,并模拟了事件驱动的机制。
In a bounded blocking queue, the writer thread also needs to wait if the queue is full.
对于有大小限制的阻塞队列,如果队列满了,写线程也需要等待。
This queue type is similar to a concurrent blocking queue except that the size of the queue is bounded.
这种队列与并发阻塞队列相似,但是对队列的大小有限制。
This queue type is similar to a concurrent blocking queue except that the size of the queue is bounded.
这种队列与并发阻塞队列相似,但是对队列的大小有限制。
应用推荐