如何计算当前域中的工作线程 [英] How to count working threads in current Domain

查看:67
本文介绍了如何计算当前域中的工作线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,其中我使用多线程,现在我有一个问题列出工作线程。



有没有办法计算和列出工作线程。

I have created an application in which i used multithreading and now i have a problem to list the working threads.

Is there any way to count and list working threads.

推荐答案

最好的方法(至少在我看来)是跟踪创建的线程,即存储的实例您创建的线程类。
Teh best way (at least in my opinion) is to keep track of created threads, that is store the instances of the Thread class you created.


这篇关于如何计算当前域中的工作线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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