다음을 통해 공유


ProcessModelSection.CpuMask 속성

정의

다중 프로세서 서버에서 ASP.NET 프로세스를 실행할 수 있는 프로세서를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

적용할 비트 패턴을 나타내는 숫자입니다. 기본값은 0xFFFFFFFF.

특성

예제

다음 코드 예제에서는 속성에 액세스 하는 방법을 보여 있습니다 CpuMask .


// 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

설명

이 값은 CpuMask ASP.NET 스레드를 실행할 수 있는 CPU를 나타내는 비트 패턴을 지정합니다. 속성이 WebGarden 설정된 true경우 작업자 프로세스는 CpuMask 적격 CPU 수로 제한됩니다. 허용되는 최대 작업자 프로세스 수는 CPU 수와 같습니다. 기본적으로 모든 CPU가 사용하도록 설정되고 ASP.NET 각 CPU에 대해 하나의 프로세스를 시작합니다. 속성이 WebGarden 설정된 falseCpuMask 경우 특성이 무시되고 하나의 작업자 프로세스만 실행됩니다.

적용 대상