Why Thread.SpinWait has an unstable wait time when I tried to measure it?

前端 未结 0 1378
不思量自难忘°
不思量自难忘° 2021-01-05 07:18

I tried to use the following code to measure how many spins I need to wait for a millisecond using Thread.SpinWait(int). But the code gives me unstable results.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题