KeStallExecutionProcessor function

The KeStallExecutionProcessor routine stalls the caller on the current processor for a specified time interval.

Syntax

NTHALAPI VOID KeStallExecutionProcessor(
  ULONG MicroSeconds
);

Parameters

MicroSeconds

Specifies the number of microseconds to stall.

Return Value

None

Remarks

KeStallExecutionProcessor is a processor-dependent routine that busy-waits for at least the specified number of microseconds, but not significantly longer.

This routine is for use by device drivers and other software that must wait for an interval of less than a clock tick but more than for a few instructions. If you use this routine you must minimize the stall interval, typically to less than 50 microseconds. If a driver must wait for a longer interval, you should use a different synchronization technique.

Requirements

   
Windows version Available starting with Windows 2000.
Target Platform Universal
Header ntifs.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library Hal.lib
DLL Hal.dll
IRQL Any level

See Also

KeDelayExecutionThread

KeWaitForMultipleObjects

KeWaitForSingleObject