Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

KeStallExecutionProcessor routine

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

Syntax


 VOID KeStallExecutionProcessor(
  _In_  ULONG MicroSeconds
);

Parameters

MicroSeconds [in]

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

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Hal.lib

IRQL

Any level

See also

KeDelayExecutionThread
KeWaitForMultipleObjects
KeWaitForSingleObject

 

 

Send comments about this topic to Microsoft

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.