本文介绍了可用线程列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法找到在

项目中运行的所有线程名称?


例如,如果我有5个线程T1, T2,T3,T4,T5 ......和T2,T4和

T5正在运行...我希望能够知道T2,T4和T5是

已经在运行。


谢谢,

Darian

Is there a way to find all the thread names that are running in a
project?

For example, if I have 5 threads T1, T2, T3, T4, T5...and T2, T4, and
T5 are running...I want to be able to know that T2, T4 and T5 are
already running.

Thanks,
Darian

推荐答案




您可以使用System.Diagnostics .Process类'的Threads成员访问

您的流程线程 - 您无法从那里获得名称

虽然......


-

Tom Shelton [MVP]



You can use the System.Diagnostics.Process class''s Threads member to access
your process threads - You won''t be able to get the name from there
though...

--
Tom Shelton [MVP]





这篇关于可用线程列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 03:30