What's the purpose of Thread.SpinWait method?

前端 未结 4 1229
耶瑟儿~
耶瑟儿~ 2020-12-12 18:05

From the MSDN is not really clear its purpose.

Can it be used to simulate an intensive CPU calculation test?

4条回答
  •  一整个雨季
    2020-12-12 18:32

    As a side note, Microsoft have gotten rid of the thread dispatcher spinlock mechanism from Windows 7, since it didn't scale well for multicore CPU's. Have a look at this:

提交回复
热议问题