ProcessModelSection.MinWorkerThreads プロパティ

定義

CLR スレッド プールにおける CPU あたりのワーカー スレッド数の下限を取得または設定します。

C#
[System.Configuration.ConfigurationProperty("minWorkerThreads", DefaultValue=1)]
[System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)]
public int MinWorkerThreads { get; set; }

プロパティ値

CLR スレッド プール内の CPU あたりのワーカー スレッドの最小数。

属性

MinWorkerThreads プロパティへのアクセス方法を次のコード例に示します。

C#

  // Get the current MinWorkerThreads property value.
int minWorkerThreads = 
    processModelSection.MinWorkerThreads;

  // Set the MinWorkerThreads property to 2.
  processModelSection.MinWorkerThreads = 2;

適用対象

製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1