Platform SDK: DLLs, Processes, and Threads

Yield

The Yield function is obsolete. It is provided only for compatibility with 16-bit versions of Windows. It has no meaning in the 32-bit environment.

Threads that contain windows should use the DispatchMessage, PeekMessage, or TranslateMessage functions. The message-loop functions handle message synchronization properly and yield at the appropriate times.

Threads that do not contain windows should use the Sleep function with a sleep time of zero milliseconds to give up the remainder of their current time slice.

Threads that create a process can use the WaitForInputIdle function to wait until the new process has finished its initialization.

See Also

Processes and Threads Overview, Process and Thread Functions, DispatchMessage, PeekMessage, Sleep, TranslateMessage, WaitForInputIdle