ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/ForkJoinPool.java
(Generate patch)

Comparing jsr166/src/jsr166y/ForkJoinPool.java (file contents):
Revision 1.42 by dl, Mon Aug 3 13:01:15 2009 UTC vs.
Revision 1.45 by dl, Tue Aug 4 12:41:27 2009 UTC

# Line 45 | Line 45 | import java.util.concurrent.atomic.Atomi
45   * #setMaintainsParallelism}, the pool attempts to maintain this
46   * number of active (or available) threads by dynamically adding,
47   * suspending, or resuming internal worker threads, even if some tasks
48 < * are waiting to join others. However, no such adjustments are
49 < * performed in the face of blocked IO or other unmanaged
48 > * are stalled waiting to join others. However, no such adjustments
49 > * are performed in the face of blocked IO or other unmanaged
50   * synchronization. The nested {@link ManagedBlocker} interface
51   * enables extension of the kinds of synchronization accommodated.
52   * The target parallelism level may also be changed dynamically
# Line 66 | Line 66 | import java.util.concurrent.atomic.Atomi
66   * used for all parallel task execution in a program or subsystem.
67   * Otherwise, use would not usually outweigh the construction and
68   * bookkeeping overhead of creating a large set of threads. For
69 < * example a common pool could be used for the {@code SortTasks}
69 > * example, a common pool could be used for the {@code SortTasks}
70   * illustrated in {@link RecursiveAction}. Because {@code
71   * ForkJoinPool} uses threads in {@linkplain java.lang.Thread#isDaemon
72 < * daemon} mode, there is typically no need to explictly {@link
72 > * daemon} mode, there is typically no need to explicitly {@link
73   * #shutdown} such a pool upon program exit.
74   *
75   * <pre>
# Line 804 | Line 804 | public class ForkJoinPool extends Abstra
804  
805      /**
806       * Returns the maximum number of threads allowed to exist in the
807 <     * pool.  Unless set using {@link #setMaximumPoolSize}, the
807 >     * pool. Unless set using {@link #setMaximumPoolSize}, the
808       * maximum is an implementation-defined value designed only to
809       * prevent runaway growth.
810       *
# Line 816 | Line 816 | public class ForkJoinPool extends Abstra
816  
817      /**
818       * Sets the maximum number of threads allowed to exist in the
819 <     * pool.  Setting this value has no effect on current pool
820 <     * size. It controls construction of new threads.
819 >     * pool. The given value should normally be greater than or equal
820 >     * to the {@link #getParallelism parallelism} level. Setting this
821 >     * value has no effect on current pool size. It controls
822 >     * construction of new threads.
823       *
824       * @throws IllegalArgumentException if negative or greater than
825       * internal implementation limit

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines