commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy McArthur" <>
Subject Re: [pool] GenericKeyedObjectPool, WHEN_EXHAUSTED_BLOCK & multiple threads
Date Sun, 29 Oct 2006 22:51:47 GMT
On 10/29/06, Holger Hoffstaette <> wrote:
> On Sat, 28 Oct 2006 21:12:06 -0400, Sandy McArthur wrote:
> > The next release of pool has a KeyedObjectPool implementation that
> > basically uses a monitor per key. There is a "global" monitor for
> > accessing the the internal pool for the key but it is very briefly held.
> > This code has been in waiting for too long while I hoped to find time to
> > optimize it some more but that free time hasn't manifested itself. I'll
> > move to release Pool 2 with the current trunk in the next few days.
> Great! One other thing I found was that the second map for counting the
> per-key active objects can really be removed into having a simple
> QueueInfo object that holds the queue, int active objects and (maybe in
> the future?) other values. A simple "struct" with public fields should be
> enough for that.

Yea, that would probably be better than maintaining parallel maps. If
you want to create a patch and attach it to an issue I'll take a look
at including it.

Sandy McArthur

"He who dares not offend cannot be honest."
- Thomas Paine

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message