Does .NET ThreadPool thread get reset when it goes back to the pool?

前端 未结 3 692
予麋鹿
予麋鹿 2021-02-19 04:10

When a thread pool thread is done, does stuff like Name or thread local data get reset? So when the thread comes out of the pool next time, it\'s like brand new?

Is ther

3条回答
  •  面向向阳花
    2021-02-19 04:34

    This is a very good read on parallel programming and TPL in .NET (4)

    As far as I know there is no reset.

    In the linked document there is are ways mentioned how to cope with that.

提交回复
热议问题