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 ごとに 1 つのプロセスを起動します。 WebGarden プロパティが false に設定されている場合、CpuMask属性は無視され、1 つのワーカー プロセスのみが実行されます。

適用対象