analyze how many threads in application and what are they doing?
<p>I have some c# application which I have to modify.
When I'm modifing some method I need to know if I should make it thread-safe.
How can I check if the particular method could be called from different threads? Are there any static-analyzing utilities?</p>

<p>I've tried to run my application and discovered in Task Manager that it contains 5 threads. I've scanned sources and so far the application is supposed to be single-threaded. Why there are 5 threads? Probably .net contains some "service" threads? How can I check who created these 5 threads and what are they doing? Are there any runtime analyzing utilities?</p>

<p>Thanks</p>
