I'm trying to troubleshoot a larger multiprocessing issue -- I suspect a client library is creating a foreground thread, and I'm trying to see if that theory is correct.
In order to do that, I'd like to be able to log a list of all threads in a process, what their state is, and whether they are background or foreground.
I've seen Process.GetCurrentProcess().Threads, but that returns a ProcessThread object, not a System.Thread. ProcessThread doesn't have all of the properties that a System.Thread does.
Is there a way to get the list of System.Threads?