ConcurrentLinkedQueue is a superb lock free queue and does what a concurrent single linked list can do.
A small warning: if you dont use poll or peek and only iterator() (+.remove()) it will leak memory.
It’s an outstanding Queue.
ConcurrentLinkedQueue is a superb lock free queue and does what a concurrent single linked list can do.
A small warning: if you dont use poll or peek and only iterator() (+.remove()) it will leak memory.
It’s an outstanding Queue.