Thread.Sleep Method

Tungsten Suite

ThreadSleep Method

Overload List
  NameDescription
Public methodStatic memberSleep(Int32)
Blocks the calling thread for the specified time
Public methodStatic memberSleep(CPUProfileEnum)
Attempts to free the CPU for other processes, based on the desired level. Consequences will vary depending on your hardware architecture. The more processors/cores you have, the better performance you will have by selecting LowCPU. Likewise, on a single-core processor, you may wish to select HighCPU.
Public methodStatic memberSleep(Int32, Boolean)
Blocks the calling thread for the specified time
Public methodStatic memberSleep(CPUProfileEnum, Int32)
Attempts to free the CPU for other processes, based on the desired level. Consequences will vary depending on your hardware architecture. The more processors/cores you have, the better performance you will have by selecting SpinWait1. Likewise, on a single-core processor, you may wish to select SpinWait0.
Top
See Also