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

Comparing jsr166/src/main/java/util/concurrent/ForkJoinWorkerThread.java (file contents):
Revision 1.12 by jsr166, Mon Nov 16 02:44:13 2009 UTC vs.
Revision 1.13 by jsr166, Mon Nov 16 04:16:42 2009 UTC

# Line 749 | Line 749 | public class ForkJoinWorkerThread extend
749           * each thread makes available for stealing enough tasks for
750           * other threads to remain active. Inductively, if all threads
751           * play by the same rules, each thread should make available
752 <         * only a constant number of tasks.
752 >         * only a constant number of tasks.
753           *
754           * The minimum useful constant is just 1. But using a value of
755           * 1 would require immediate replenishment upon each steal to
# Line 767 | Line 767 | public class ForkJoinWorkerThread extend
767           * hedge against uneven progress; as traded off against the
768           * cost of extra task overhead. We leave the user to pick a
769           * threshold value to compare with the results of this call to
770 <         * guide decisions, but recommend values such as 3.
770 >         * guide decisions, but recommend values such as 3.
771           *
772           * When all threads are active, it is on average OK to
773           * estimate surplus strictly locally. In steady-state, if one

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines