Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Specifies whether the full thread stack is committed when a thread is started.
<configuration>
<runtime>
<disableCommitThreadStack>
<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 | Description |
---|---|
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 | Description |
---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
runtime |
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.
Note
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>
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now