I create dynamic threads in C# and I need to get the status of those running threads.
List[] list;
list = dbConnect.Select();
for (int i = 0; i &l
Use Process.Threads:
var currentProcess = Process.GetCurrentProcess();
var threads = currentProcess.Threads;
Note: any threads owned by the current process will show up here, including those not explicitly created by you.
If you only want the threads that you created, well, why don't you just keep track of them when you create them?