In the .NET BCL, there is a CurrentThread and a ProcessThread object. What is the difference between these?
Thanks
The CurrentThread
static property on the System.Threading.Thread
class is the current CLR System.Threading.Thread
instance. The CLR Thread is an abstraction over the underlying win32 thread. The System.Diagnostics.ProcessThread
class gives one access to the win32 threads, largely for perfomance tracking.
A key distinction of CLR threads is that they are not fixed to win32 threads.