Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
3.80/5 (2 votes)
See more:
Hi Experts,

When i write a console application in .net and code contain finalizer and dispose pattern and also some general code then how many thread are created when this application run and what are the name of that threads.


Thanks
Dinesh
Posted
Comments
Sergey Alexandrovich Kryukov 6-May-14 1:32am    
Wrong thinking about finalizer and even more wrong about dispose pattern, but this is still another interesting question; I up-voted it with 4.
—SA

1 solution

I believe that minimal number of threads is one. Why not checking it up?

I would suggest using Sysinternals Suite (Sysinternals is not a part of Microsoft): http://technet.microsoft.com/en-us/sysinternals/bb842062[^].

These are two utilities you can use:
http://technet.microsoft.com/en-us/sysinternals/bb896653[^],
http://technet.microsoft.com/en-us/sysinternals/bb896645[^].

The results can be sometimes interesting. For example, the process using at least one file dialog adds a thread for dialog activity (I hope you can understand why).

I would say, Sysinternals Suite is must-have for all software developers, to complement other Microsoft development tools.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900