ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CopyOnWriteArraySet.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArraySet.java (file contents):
Revision 1.8 by dl, Mon Aug 25 19:27:58 2003 UTC vs.
Revision 1.9 by dl, Sun Oct 5 23:00:18 2003 UTC

# Line 18 | Line 18 | import java.util.*;
18   *       to prevent interference among threads during traversal.
19   *  <li>Mutative operations(add, set, remove, etc) are expensive
20   *      since they usually entail copying the entire underlying array.
21 *  <li>Loops involving repeated element-by-element mutative operations
22 *      are so expensive that they should generally be avoided.
21   *  <li>Iterators do not support the mutative remove operation
22   *  <li>Traversal via iterators is very fast and cannot ever encounter
23   *      interference from other threads. Iterators rely on

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines