[concurrency-interest] Problem with using an unbounded map of Mutex lock objects
gluck at gregluck.com
Fri Jun 2 18:18:10 EDT 2006
That sounds good. I don't have a copy of JCiP so I bought one :) from
Amazon. It will arrive between June 21 and July 3. I would appreciate
any online or email stuff on lock striping in the meantime.
On 03/06/2006, at 7:52 AM, Brian Goetz wrote:
>> I am thinking perhaps a pool of locks but I need to work out how
>> to safely reuse the pool. Something close to the Pool discussed in
>> Section 220.127.116.11 is probably what I need.
> Look at lock striping (JCiP 11.4.3), which is also used by
> ConcurrentHashMap. It creates an array of locks (say, 16), and
> uses hashCode() % 16 to partition the keys across the set of locks.
mobile: +61 408 061 622
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest