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?
source
share