sched_yield(2) System Calls Manual sched_yield(2) sched_yield - C (libc, -lc) #include int sched_yield(void); sched_yield() . , . sched_yield() 0; -1, errno . Linux- sched_yield() . POSIX.1-2008. POSIX.1-2001 (but optional). POSIX.1-2008. Before POSIX.1-2008, systems on which sched_yield() is available defined _POSIX_PRIORITY_SCHEDULING in . CAVEATS sched_yield() (. ., SCHED_FIFO SCHED_RR). sched_yield() , SCHED_OTHER, , , . , sched_yield(). Avoid calling sched_yield() unnecessarily or inappropriately (e.g., when resources needed by other schedulable threads are still held by the caller), since doing so will result in unnecessary context switches, which will degrade system performance. sched(7) () Alexander Golubev , Azamat Hackimov , Hotellook, Nikita , Spiros Georgaras , Vladislav , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . sched_yield(2)