[concurrency-interest] Problem with using an unbounded map of Mutex lock objects

Greg Luck 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 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.


Greg Luck

web: http://gregluck.com
skype: gregrluck
yahoo: gregrluck
mobile: +61 408 061 622

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20060603/40c063d3/attachment.html 

More information about the Concurrency-interest mailing list