.net应用程序运行时创建了多少个线程。 [英] How many thread is created when .net application run.

查看:124
本文介绍了.net应用程序运行时创建了多少个线程。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



当我在.net中编写控制台应用程序并且代码包含终结器和配置模式以及一些通用代码时,那么创建了多少个线程这个应用程序运行,该线程的名称是什么。





谢谢

Dinesh

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

推荐答案

我相信最少的线程数是一个。为什么不检查?



我建议使用Sysinternals Suite(Sysinternals不是Microsoft的一部分): http://technet.microsoft.com/en-us/sysinternals/bb842062 [ ^ ]。



这两个可以使用的实用工具:

http://technet.microsoft.com/en-us/sysinternals/bb896653 [ ^ ],

http://technet.microsoft.com/en-us/sysinternals/bb896645 [ ^ ]。



结果有时很有趣。例如,使用至少一个文件对话框的过程为对话活动添加了一个线程(我希望你能理解为什么)。



我想说,Sysinternals Suite是必须的 - 适用于所有软件开发人员,以补充其他Microsoft开发工具。



-SA
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


这篇关于.net应用程序运行时创建了多少个线程。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆