How can I get a list of all threads in a .Net application?

I am trying to fix a problem with a large amount of multiprocessing - I suspect that the client library is creating a foreground thread, and I am trying to figure out if this theory is correct.

To do this, I would like to be able to register a list of all the threads in the process, what is their state and whether they are the background or the foreground.

I saw Process.GetCurrentProcess (). Threads, but returns a ProcessThread object, not a System.Thread object. ProcessThread does not have all the properties that System.Thread does.

Is there a way to get a list of System.Threads?

+3
source share
3 answers
+3

Visual Studio , DebugInspector ( URL-, ).

#, , .

+2

You may be able to see them using Process Monitor http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

0
source

Source: https://habr.com/ru/post/1726845/


All Articles