DOFConfigBuildersetThreadPoolSize Method OpenDOF Object Access Library
Sets the maximum number of threads that a DOF can create to process operations.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
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: DOFConfigBuilder
The Builder, with the thread pool size set to the new value.
Remarks

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.

See Also

Reference