I can get a list of running threads from Process.GetCurrentProcess().Threads, but I need to know the managed name of threads started with Thread.Start. It isn’t a property on the ProcessThread object though. Is there a way to get this information from a ProcessThread?
I can get a list of running threads from Process.GetCurrentProcess().Threads, but I need to
Share
While CLR spawns an OS thread for each managed thread, it’s not forced to. I mean, no standard guarantees that there should be a one to one mapping between OS threads and managed threads.
To quote MSDN: