[concurrency-interest] LBQ vs CLBQ
szabolcs.ferenczi at gmail.com
Wed Apr 4 15:14:58 EDT 2007
On 04/04/07, Hanson Char <hanson.char at gmail.com> wrote:
> I've further enhanced ConcurrentLinkedBlokcingQueue such that it implements
> the BlockingQueue interface. In other words, CLBQ can now be used as a
> drop-in replacement for LBQ. See:
You claim that CLBQ implements the BlockingQueue interface. But the
put method is not implemented with the semantics as defined in the
BlockingQueue interface. Thus, CLBQ cannot be the drop-in replacement
for LBQ. Do I miss something?
I am really curious how you can implement the blocking put method
along the same principles you used for the offer method.
More information about the Concurrency-interest