MSDN "Thread-Safe Collections .NET Framework 4" states:
"Some of the concurrent collection types use lightweight synchronization mechanisms such as SpinLock, SpinWait, SemaphoreSlim, and CountdownEvent, which are new in the .NET Framework 4"
while MSDN website tells that SpinWaitwas was available as far as .NET 1.1 while another MSDN article starts SpinWaitwas from .NET 4.0
Well, the curiosity is from the comment by Lee Grissom to answer What is the difference between SynchronizedCollection and the other concurrent collections?:
"@Matt, the .NET4 concurrent classes use
SpinWait
objects to address thread-safety instead of Monitor.Enter/Exit (aka Critical section)?"
as well as first NSDN quote stating that SpinWait
is new to .NET 4.0
So, is it new or not?
And if new then how?
SpinWait
function was present in .NET 1.1 and theSpinWait
structure was added in .NET 4.0 – Artist