c# - Threading: Thread.CurrentThread.Name and Thread.CurrentThread.ManagedThereadId -


i trying identify threads assigning names them (property: system.threading.thread.currentthread.name) realized use system.threading.thread.currentthread.managedthreadid. question is: if assign "thread1" in property currentthread.name , currentthread.managedthreadid "1", true? or threadpool can assign different managedthreadid thread name "thread1"?

msdn states:

the value of managedthreadid property not vary on time, if unmanaged code hosts common language runtime implements thread fiber.

so wouldn't worry correspondence thread name -> managed thread id breaking.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

asp.net - Passing parameter to telerik popup -

DOM Manipulation in Wordpress (and elsewhere) using php -