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

Comparing jsr166/src/main/java/util/concurrent/Exchanger.java (file contents):
Revision 1.46 by jsr166, Mon Nov 29 20:58:06 2010 UTC vs.
Revision 1.47 by dl, Mon Mar 7 17:15:21 2011 UTC

# Line 135 | Line 135 | public class Exchanger<V> {
135       * races between two threads or thread pre-emptions occurring
136       * between reading and CASing.  Also, very transient peak
137       * contention can be much higher than the average sustainable
138 <     * levels.  The max limit is decreased on average 50% of the times
139 <     * that a non-slot-zero wait elapses without being fulfilled.
138 >     * levels.  An attempt to decrease the max limit is usually made
139 >     * when a non-slot-zero wait elapses without being fulfilled.
140       * Threads experiencing elapsed waits move closer to zero, so
141       * eventually find existing (or future) threads even if the table
142       * has been shrunk due to inactivity.  The chosen mechanics and

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines