[concurrency-interest] PriorityBlockingQueue uses a fair lock

Martin Buchholz martinrb at google.com
Wed May 5 19:51:51 EDT 2010

A colleague noticed that PriorityBlockingQueue's
internal lock is a fair ReentrantLock,
when a non-fair lock would be much faster
and usually "fair" enough.  Is there some history here?
Should we add a non-fair option for constructing PBQ?


More information about the Concurrency-interest mailing list