thr_yield

Forces the calling thread to relinquish the processor if any other thread is ready to execute.

Library:LibC
Classification:UNIX International
Service:Threads

Syntax

  #include <thread.h>
   
  void thr_yield ( void );
  

Remarks

On NetWare, the NetWare scheduler determines the effects of calling thr_yield. The scheduler might not actually yield the processor, depending on how long the thread has already run.

This function can be used to support the NetWare certification requirement that an application yield explicitly, if necessary, when an application might hog a CPU.