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

Tim Peierls tim at peierls.net
Sat Jun 3 01:05:30 EDT 2006


On 6/2/06, Greg Luck <gluck at gregluck.com> wrote:
>
> * A version of this class is planned which will dynamically use JDK5's
> concurrency package, which is
> * based on Doug Lea's, so as to avoid a dependency on his package for JDK5
> systems. This will not
> * be implemented until JDK5 is released on MacOSX and Linux, as JDK5 will
> be required to compile
> * it, though any version from JDK1.2 up will be able to run the code,
> falling back to Doug
> * Lea's concurrency package, if the JDK5 package is not found in the
> classpath.
>

Nothing to do with the locking question you asked, but consider using Dawid
Kurzyniec's backport of the java.util.concurrent package instead of falling
back to Doug Lea's util.concurrent library -- it might make it easier to
maintain the two versions of the class in parallel.

http://dcl.mathcs.emory.edu/util/backport-util-concurrent/


--tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20060603/974cef31/attachment.html 


More information about the Concurrency-interest mailing list