[External] : Re: [POTENTIAL BUG] Potential FIFO violation in BlockingQueue under high contention and suggestion for fair mode in ArrayBlockingQueue and LinkedBlockingQueue
Archie Cobbs
archie.cobbs at gmail.com
Fri Sep 20 14:32:45 UTC 2024
Hi Kim,
Here is a quick summary of my thoughts...
Before diving into coding solutions, we need to make sure we're all on the
same page.
First: (Viktor) Do we all agree that "Interpretation B" accurately
describes how things are actually working today?
If "No" then we need to stop and understand the disagreement.
If "Yes" then the next step is to collectively decide what, if anything, we
might want to change. Here are some options:
1. Do nothing
2. Do nothing but document the behavior more clearly in the Javadoc
3. Change the behavior from B → A and update the Javadoc accordingly
4. Something else?
Deciding among 1-4 will likely need to involve more core-libs-dev people,
especially of the java.util.concurrent ilk.
-Archie
On Fri, Sep 20, 2024 at 1:58 AM 김민주 <miiiinju00 at gmail.com> wrote:
> Hi Viktor, Archie, and Daniel,
>
> I hope everything is going well on your end. I really appreciate the
> thoughtful feedback you've provided so far, and I wanted to follow up on
> our previous discussion about the potential fairness issue in
> ArrayBlockingQueue when using ReentrantLock with Condition.await().
>
--
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240920/cc21d8e2/attachment.htm>
More information about the core-libs-dev
mailing list