How is the memory managed for a thread?
I understand that .net threads are pretty heavy weight, consuming ~1MB of
memory each (mostly for the stack). Now, if this was a user .net class I
know that it is likely going to put most of the memory into LOH. However,
since it is a core class, I am wondering what the behavior is.
The reason for this question is because I am memory profiling an
(potentially long lived) application at the moment, and there seems to be
a slow leak. I had noticed that VS is showing 33 threads (in various
states, included stopped). I am wonder if the frugal usage of threads
could be fragmenting the memory (along with a few LOH DTOs).
No comments:
Post a Comment