wicket.util.concurrent package
Contains the classes for concurrency support.
This package provides standardized, efficient versions of utility
classes commonly encountered in concurrent Java programming. This code
consists of implementations of ideas that have been around for ages, and
is merely intended to save you the trouble of coding them. Discussions
of the rationale and applications of several of these classes can be
found in the second edition of
Concurrent Programming in Java.
There are also pdf
slides providing an overview of the package.
These classes were taken from concurrent.jar, version 1.3.4, provided by
Doug Lea. Java 1.5 and later have these collections built in.
|
CopyOnWriteArrayList.java | Class | This class implements a variant of java.util.ArrayList in which all mutative
operations (add, set, and so on) are implemented by making a fresh copy of
the underlying array.
This is ordinarily too costly, but it becomes attractive when traversal
operations vastly overwhelm mutations, and, especially, when you cannot or
don't want to synchronize traversals, yet need to preclude interference among
concurrent threads. |