суббота, 8 февраля 2014 г.

потоки CLR и потоки системы

поначалу планировалось, что это будут разные вещи, и в итоге от такой мысли отказались, но, к сожалению, не полностью.
например,System.Environment class exposes a CurrentManagedThreadId property, which returns the CLR’s ID for a thread, while System.Diagnostics.ProcessThread class exposes an Id property that returns Windows’ ID for the same thread. The System.Thread class’ BeginThreadAffintiy and EndThreadAffinity methods were also introduced to deal with the notion that a CLR thread might not map to a Windows thread.

Комментариев нет:

Отправить комментарий