By bloid
via floatingpoint.tinou.com
Published: Oct 01 2008 / 20:02
The other day I mentioned ConcurrentHashMap favored the judicious use of volatile over locks for read operations. The code becomes significantly more difficult to understand, but the performance gain is also significant. Write operations, however, still involved locking. The question is then, can we improve on write operations and its use of locks? The answer is yes. There are at least two approaches, both of which take a more optimistic approach than locking.



Add your comment