so many threads... why?!

  • Thread starter Thread starter Piotrek Stachowicz
  • Start date Start date
P

Piotrek Stachowicz

Hello,
I 've just written a simple c# application and out of curiosity I
decided to examine it with spy++. It was a bit surprising, that under my
app name in the list of processes, I could find a bunch of different
threads. I haven't created any separate threads in my application, so I
assume that these are generated by environment (.NET perhaps).
Could anyone explain me why my application needs so many threads, and
how can I figure out which one is doing what. I can see that one thread is
somewhat special - it contains many windows (main thread?), what about
others?!

Thanks,

Piotrek
 
in order to look cool on da westside of the process heap, a .NET application must start a lot of random threads in order to perform various memory allocation tasks, it's nothing to worry about. Your application will still have one primary UI thread, and the extra threads are probably thread pool threads just buzzing around making sure everything is in order.
 
Back
Top