Reputation: 259
I was trying to identify some threads by assigning names to them (property: System.Threading.Thread.CurrentThread.Name
) but then I realized I could use the System.Threading.Thread.CurrentThread.ManagedThreadId
. My question is: if I assign "Thread1" in the property CurrentThread.Name
and the CurrentThread.ManagedThreadId
would be "1", will this always be true? or the threadpool can assign different ManagedThreadId to the thread with the name "Thread1"?
Upvotes: 2
Views: 9581