[#BloombergLP-bslmt-ThreadUtilImpl-04-yield] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl<Platform::PosixThreads>]::yield :relfileprefix: ../../../ :mrdocs: Yield the processor so another ready thread can run. == Synopsis Declared in `<bslmt_threadutilimpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void yield(); ---- == Description Put the current thread to the end of the scheduler's queue and schedule another thread to run. This allows cooperating threads of the same priority to share CPU resources equally. [.small]#Created with https://www.mrdocs.com[MrDocs]#