[concurrency-interest] Package jsr166e

Doug Lea dl at cs.oswego.edu
Wed Jul 20 12:39:45 EDT 2011


We've created package jsr166e of classes ultimately targeted for jdk8
("e" for "eight"). Jars will also contain subpackage jsr166e.extra,
that includes possibly useful classes that rely on jsr166e, but
aren't currently planned for integration into java.util.concurrent.

The initial contents include preliminary forms of two classes that
for one reason or another have been left incompletely developed and
unreleased for too long:
   * SequenceLock -- a Lock that in some applications is usable as a
     cheaper alternative to ReadWriteLocks
   * StripedAdder -- an adder (often used as a counter) that
     greatly reduces contention when updated concurrently in many threads

There is also a jsr166e.extra.ReadMostlyVector class that
is an application of SequenceLocks -- covering a middle
ground between Vector (or Collections.synchronizedList(ArrayList))
versus CopyOnWriteArrayList.

Suggestions and especially usage reports about these would
be very welcome.

Get them in the usual way. Pasting from:
http://gee.cs.oswego.edu/dl/concurrency-interest/index.html

API specs:  http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166edocs/
jar file: http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166e.jar (compiled using 
Java7 javac).
Browsable CVS sources: 
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/

(test file sources and other related stuff still forthcoming.)

-Doug






More information about the Concurrency-interest mailing list