so many threads... why?!

  • Thread starter Piotrek Stachowicz
  • 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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top