Export (0) Print
Expand All

ProcessModelSection.CpuMask Property

Gets or sets a value indicating which processors on a multiprocessor server are eligible to run ASP.NET processes.

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

[ConfigurationPropertyAttribute("cpuMask", DefaultValue = "0xffffffff")]
public int CpuMask { get; set; }

Property Value

Type: System.Int32
The number representing the bit pattern to apply. The default value is 0xFFFFFFFF.

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.

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;

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft