Kernel32SwitchToThread Method

Causes the calling thread to yield execution to another thread that is ready to run on the current processor.

The operating system selects the next thread to be executed.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true)]
public static bool SwitchToThread()

Return Value

Boolean
If calling the SwitchToThread function causes the operating system to switch execution to another thread, the return value is .

If there are no other threads ready to execute, the operating system does not switch execution to another thread, and the return value is .

Remarks

See Also