Share via


HttpRuntimeSection.MinFreeThreads プロパティ

定義

この構成のスコープ内のリソースの要求が処理されるまで空いている必要がある、スレッドの最小数を取得または設定します。

public:
 property int MinFreeThreads { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("minFreeThreads", DefaultValue=8)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MinFreeThreads { get; set; }
[<System.Configuration.ConfigurationProperty("minFreeThreads", DefaultValue=8)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MinFreeThreads : int with get, set
Public Property MinFreeThreads As Integer

プロパティ値

Int32

この構成のスコープ内の要求が処理されるまでの、共通言語ランタイム (CLR: Common Language Runtime) スレッド プール内のフリー スレッドの最小数。 既定値は 8 です

属性

MinFreeThreads プロパティを使用する方法を次の例に示します。

// Get the MinFreeThreads property value.
Response.Write("MinFreeThreads: " +
  configSection.MinFreeThreads + "<br>");

// Set the MinFreeThreads property value to 16
configSection.MinFreeThreads = 16;
' Get the MinFreeThreads property value.
Response.Write("MinFreeThreads: " & _
  configSection.MinFreeThreads & "<br>")

' Set the MinFreeThreads property value to 16
configSection.MinFreeThreads = 16

注釈

このプロパティは MinFreeThreads 、要求を実行する空きスレッドの最小数を定義します。 十分な数のスレッドが使用できない場合、要求はキューに残り、スレッドの可用性の定期的なチェックは、必要な量のスレッドが存在するまで続行されます。 既定値は 8 です。

注意

ASP.NET は、処理の完了に追加のスレッドが必要な要求のために、この数のフリー スレッドを維持します。

適用対象

こちらもご覧ください