This documentation is archived and is not being maintained.

Thread.SpinWait Method

Causes a thread to wait the number of times defined by the iterations parameter.

[Visual Basic]
Public Shared Sub SpinWait( _
   ByVal iterations As Integer _
public static void SpinWait(
 int iterations
public: static void SpinWait(
 int iterations
public static function SpinWait(
   iterations : int


A 32-bit signed integer that defines how long a thread is to wait.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Thread Class | Thread Members | System.Threading Namespace