ArrayBlockingQueue: concurrent put and take

12 messages Options
ArrayBlockingQueue: concurrent put and take – Is it possible to implement ArrayBlockingQueue to support concurrent calls to put and take? One could use a slightly different representation ...
> Is it possible to implement ArrayBlockingQueue to support concurrent > calls to put and take? No, but LinkedBlockingQueue does. It u...
It may be a naive question, But i have the same question on why ABQ cant use two-lock algorithm. It would be a great help if somebody can point...
LinkedBlockingQueue has a two-lock strategy, but ArrayBlockingQueue does not. It took us years to figure out how to get the iterator to behave ...
Thanks Martin, I agree with functionality like iterator etc, implementations becomes more difficult. But if narrow down the scope of ABQ ...
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, the...
i am just trying to understand the rationale behind juc implementations of these Two BQ implementations. Moreover i have pasted a small snippet o...
Ohh i forgot the link http://pastebin.com/ZD1uFy7S
I think it was a mistake to have the BlockingQueue interface too broad. (A general issue with the JDK collections) (There's also a lack of non-b...
On Thu, Jul 3, 2014 at 11:35 AM, √iktor Ҡlang <viktor.klang@...> wrote: > I think it was a mistake to have the BlockingQueue interfac...
On Thu, Jul 3, 2014 at 1:17 PM, Kasper Nielsen <kasperni@...> wrote: > On Thu, Jul 3, 2014 at 11:35 AM, √iktor Ҡlang <viktor.klang@...
On Thu, Jul 3, 2014 at 2:35 AM, √iktor Ҡlang <viktor.klang@...> wrote: > I think it was a mistake to have the BlockingQueue interface ...