<disableCommitThreadStack> Element

Specifies whether the full thread stack is committed when a thread is started.

<configuration> Element
  <runtime> Element
    <disableCommitThreadStack> Element
<disableCommitThreadStack enabled="0|1"/>

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

enabled

Required attribute.

Specifies whether committing the full thread stack on thread startup (the default behavior) is disabled.

enabled Attribute

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.

Child Elements

None.

Parent Elements

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.

NoteNote

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>
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft