ForkJoinPool.SetParallelism(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the target parallelism of this pool, controlling the future creation, use, and termination of worker threads.
[Android.Runtime.Register("setParallelism", "(I)I", "GetSetParallelism_IHandler", ApiSince=36)]
public virtual int SetParallelism(int size);
[<Android.Runtime.Register("setParallelism", "(I)I", "GetSetParallelism_IHandler", ApiSince=36)>]
abstract member SetParallelism : int -> int
override this.SetParallelism : int -> int
Parameters
- size
- Int32
the target parallelism level
Returns
the previous parallelism level.
- Attributes
Remarks
Changes the target parallelism of this pool, controlling the future creation, use, and termination of worker threads. Applications include contexts in which the number of available processors changes over time.
Added in 19.
Java documentation for java.util.concurrent.ForkJoinPool.setParallelism(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.