阅读背景:

SwitchToThread / Thread.Yield vs. Thread.Sleep(0)vs. Thead.Sleep(1)

来源:互联网 

I am trying to write the ultimate "Yield" method to yield the current time slice to other threads. So far I have found that there are several different ways to make the thread yield its allocated time slice. I just want to make sure I am interpreting them correctly since the documentation is not very clear. So, from what I have read on stackoverflow, MSDN and various blog posts, the following options exist that all have different advantages / disadvantages:I am trying to write the ultimate "Yield" metho




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: