In the .NET BCL, there is a CurrentThread and a ProcessThread object. What is the difference between these?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
CurrentThreadstatic property on theSystem.Threading.Threadclass is the current CLRSystem.Threading.Threadinstance. The CLR Thread is an abstraction over the underlying win32 thread. TheSystem.Diagnostics.ProcessThreadclass 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.