KeStallExecutionProcessor function (wdm.h)

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

Syntax

NTHALAPI VOID KeStallExecutionProcessor(
  [in] ULONG MicroSeconds
);

Parameters

[in] 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

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library Hal.lib
DLL Hal.dll
IRQL Any level

See also

KeDelayExecutionThread

KeWaitForMultipleObjects

KeWaitForSingleObject