ProcessModelSection.MinWorkerThreads Property

 

Gets or sets the minimum number of worker threads per CPU in the CLR thread pool.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("minWorkerThreads", DefaultValue = 1)]
[IntegerValidatorAttribute(MinValue = 1, MaxValue = 2147483646)]
public int MinWorkerThreads { get; set; }

Property Value

Type: System.Int32

The minimum number of worker threads per CPU in the CLR thread pool

The following code example shows how to access the MinWorkerThreads property.


  // Get the current MinWorkerThreads property value.
int minWorkerThreads = 
    processModelSection.MinWorkerThreads;

  // Set the MinWorkerThreads property to 2.
  processModelSection.MinWorkerThreads = 2;

.NET Framework
Available since 2.0
Return to top
Show: