ConcurrentLinkedQueue VS LinkedBlockingQueue

https://stackoverflow.com/questions/1426342/need-a-queue-that-can-support-multiple-readers/

The major difference between ConcurrentLinkedQueue and LinkedBLockingQueue is its throughput. Under moderate thread contention ConcurrentLinkedQueue greatly out performs all other BlockingQueues. Under heavy contetion, however, a BlockingQueue is a slightly better choice as it will appropriately put contending threads into the waiting thread set.

你可能感兴趣的:(Java,知识)