John,
I believe (and I am not positive here) that SpinWait is really just a
loop that executes for a certain number of iterations. The difference
between Sleep and SpinWait is that Sleep actually will give up its slice of
processing time to other threads, while SpinWait will just enter a loop, not
forefitting the slice it gets.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"john" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
what is the difference between Thread.Sleep and
Thread.SpinWait? They both look like they are used to
make the thread pause for a certian amount of time. what
are the differences?
thanks,
j