104 |
|
* </tr> |
105 |
|
* </table> |
106 |
|
* |
107 |
< |
* <p>The common pool is by default constructed with default |
108 |
< |
* parameters, but these may be controlled by setting the following |
109 |
< |
* {@linkplain System#getProperty system properties}: |
107 |
> |
* <p>The parameters used to construct the common pool may be controlled by |
108 |
> |
* setting the following {@linkplain System#getProperty system properties}: |
109 |
|
* <ul> |
110 |
|
* <li>{@code java.util.concurrent.ForkJoinPool.common.parallelism} |
111 |
|
* - the parallelism level, a non-negative integer |
121 |
|
* - the maximum number of allowed extra threads to maintain target |
122 |
|
* parallelism (default 256). |
123 |
|
* </ul> |
124 |
< |
* If a {@link SecurityManager} is present and no factory is specified, |
125 |
< |
* then the default pool uses a factory supplying threads that have no |
127 |
< |
* {@link Permissions} enabled, and uses the system class loader as the |
124 |
> |
* If no thread factory is supplied via a system property, then the |
125 |
> |
* common pool uses a factory that uses the system class loader as the |
126 |
|
* {@linkplain Thread#getContextClassLoader() thread context class loader}. |
127 |
+ |
* In addition, if a {@link SecurityManager} is present, then |
128 |
+ |
* the common pool uses a factory supplying threads that have no |
129 |
+ |
* {@link Permissions} enabled. |
130 |
|
* |
131 |
|
* Upon any error in establishing these settings, default parameters |
132 |
|
* are used. It is possible to disable or limit the use of threads in |