?? pthread_yield.txt
字號:
--------------------------------------------------------------------------------AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1--------------------------------------------------------------------------------pthread_yield SubroutinePurposeForces the calling thread to relinquish use of its processor.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>void pthread_yield ()DescriptionThe pthread_yield subroutine forces the calling thread to relinquish use of itsprocessor, and to wait in the run queue before it is scheduled again. If the runqueue is empty when the pthread_yield subroutine is called, the calling thread isimmediately rescheduled.If the thread has global contention scope (PTHREAD_SCOPE_SYSTEM), calling thissubroutine acts like calling the yield subroutine. Otherwise, another localcontention scope thread is scheduled. The pthread.h header file must be the first included file of each source file using the threads library. Otherwise, the -D_THREAD_SAFE compilation flag should be used, or the cc_r compiler used. In this case, the flag is automatically set.Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.Related InformationThe yield subroutine and the sched_yield subroutine.Threads Scheduling in AIX Version 4.3 General Programming Concepts: Writing andDebugging Programs.Threads Library Options and Threads Library Quick Reference in AIX Version 4.3General Programming Concepts: Writing and Debugging Programs.--------------------------------------------------------------------------------
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -