HttpRuntimeSection.MinLocalRequestFreeThreads Property

Gets or sets the minimum number of free threads required to service a local request.

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

public int MinLocalRequestFreeThreads { get; set; }
/** @property */
public int get_MinLocalRequestFreeThreads ()

/** @property */
public void set_MinLocalRequestFreeThreads (int value)

public function get MinLocalRequestFreeThreads () : int

public function set MinLocalRequestFreeThreads (value : int)

Not applicable.

Property Value

The minimum number of free threads assigned to local requests. The default value is 4.

The MinLocalRequestFreeThreads property defines the number of free threads that ASP.NET keeps available to allow execution of new local requests. The intent is to avoid a possible deadlock with recursive reentry into the Web server.

The following example shows how to use the MinLocalRequestFreeThreads property.

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

// Set the MinLocalRequestFreeThreads property value to 8.
configSection.MinLocalRequestFreeThreads = 8;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0