ProcessModelSection.CpuMask Property
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.
Gets or sets a value indicating which processors on a multiprocessor server are eligible to run ASP.NET processes.
public:
property int CpuMask { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("cpuMask", DefaultValue="0xffffffff")]
public int CpuMask { get; set; }
[<System.Configuration.ConfigurationProperty("cpuMask", DefaultValue="0xffffffff")>]
member this.CpuMask : int with get, set
Public Property CpuMask As Integer
Property Value
The number representing the bit pattern to apply. The default value is 0xFFFFFFFF.
- Attributes
Examples
The following code example shows how to access the CpuMask property.
// Get the current CpuMask property value.
int cpuMask =
processModelSection.CpuMask;
// Set the CpuMask property to 0x000000FF.
processModelSection.CpuMask = 0x000000FF;
' Get the current CpuMask property value.
Dim cpuMask As Integer = _
processModelSection.CpuMask
' Set the CpuMask property to 0x000000FF.
processModelSection.CpuMask = &HFF
Remarks
The CpuMask value specifies a bit pattern that indicates the CPUs eligible to run ASP.NET threads. If the WebGarden property is set to true
, the CpuMask limits worker processes to the number of eligible CPUs. The maximum allowed number of worker processes is equal to the number of CPUs. By default, all CPUs are enabled and ASP.NET launches one process for each CPU. If the WebGarden property is set to false
, the CpuMask attribute is ignored and only one worker process will run.
Applies to
.NET