Specifies whether the full thread stack is committed when a thread is started.
<disableCommitThreadStack enabled="0|1"/>
The following sections describe attributes, child elements, and parent elements.
Attribute
Description
enabled
Required attribute.
Specifies whether committing the full thread stack on thread startup (the default behavior) is disabled.
Value
0
Do not disable the default behavior of the common language runtime, which is to commit the full thread stack when a thread is started.
1
Disable the default behavior of the common language runtime, which is to commit the full thread stack when a thread is started.
None.
Element
<configuration> Element
The root element in every configuration file used by the common language runtime and .NET Framework applications.
<runtime> Element
Contains information about assembly binding and garbage collection.
The default behavior of the common language runtime is to commit the full thread stack when a thread is started. If a large number of threads must be created on a server that has limited memory, and most of those threads will use very little stack space, the server might perform better if the common language runtime does not commit the full thread stack immediately when a thread is started.
Unmanaged hosts can use the STARTUP_DISABLE_COMMITTHREADSTACK startup flag in the STARTUP_FLAGS enumeration to accomplish the same result.
The following example shows how to disable the default behavior of the common language runtime, which is to commit the full thread stack on thread startup.
<configuration> <runtime> <disableCommitThreadStack enabled="1" /> </runtime> </configuration>