|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
#include <dpmi.h> void __dpmi_yield(void);
__dpmi_yield calls function 1680h of the interrupt 2Fh, which
tells the task manager in a multitasking environment that the calling
program doesn't need the rest of its time slice. The task manager will
then preempt the calling program and switch to another task that is
ready to run.
This function should be called in busy-wait loops, like when a program waits for user input via keyboard, after it finds the keyboard buffer empty, to enhance overall performance in a multitasking environment.
None. If the call isn't supported by the environment, like when running
on plain DOS,
errno is set to
|webmaster||delorie software privacy|
|Copyright © 2004 by DJ Delorie||Updated Apr 2004|