[concurrency-interest] ArrayBlockingQueue: concurrent put and take
martinrb at google.com
Wed Jul 2 22:51:36 EDT 2014
But what are you trying to achieve? If you have perfect timing, and a put
and take are always concurrent, and the queue is always half-full, then you
might be able to get (only!) a 2x speedup. But you're not going to get
those perfect conditions.
Anyways, go ahead and implement it and see what happens.
On Wed, Jul 2, 2014 at 6:07 PM, vikas <vikas.vksingh at gmail.com> wrote:
> Thanks Martin,
> I agree with functionality like iterator etc, implementations becomes
> more difficult.
> But if narrow down the scope of ABQ to only put and take. Then i think it
> would be possible to have
> concurrent put and take with a single contention point on the AtomicCounter
> View this message in context:
> Sent from the JSR166 Concurrency mailing list archive at Nabble.com.
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest