I know that I should not rely on the fact that there is a one-to-one mapping between managed and unmanaged threads . From MSDN :
The ThreadId operating system does not have a fixed connection with a managed thread, because an unmanaged host can control the relationship between managed and unmanaged threads. In particular, a complex host can use the Fiber API to schedule many managed threads against the same operating system thread or to move a managed thread between different operating system threads.
In real life, however, are there such CLR hosts? (and if so, what are they?) I just answered a related question, and I wonder how practically bad my advice was for in this particular case .
Noseratio Aug 26 '13 at 4:01 2013-08-26 04:01
source share