Sets the maximum number of threads that a DOF can create to process operations.
Namespace: org.opendof.core.oalAssembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
public DOFConfigBuilder setThreadPoolSize(
short max
)
Parameters
- max
- Type: SystemInt16
The maximum number of threads that the DOF can create. The value must be positive. Negative values
are converted to zero.
Return Value
Type:
DOFConfigBuilderThe Builder, with the thread pool size set to the new value.
Sets the maximum number of threads that a DOF can create to process operations.
If you input a value for thread pool size that is greater than the limit the underlying operating system can handle, the number of
threads you can create will be constrained by the operating system. In addition, inputting a zero means that the library
will not limit the maximum number of threads, but the operating system limits still apply.
Setting this parameter too low or too high may cause performance problems, based on the application, virtual machine, operating system, and hardware.
Reference