?? pthread_getschedparam.txt
字號:
--------------------------------------------------------------------------------AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1--------------------------------------------------------------------------------pthread_getschedparam SubroutinePurposeReturns the current schedpolicy and schedparam attributes of a thread.LibraryThreads Library (libpthreads.a)Syntax#include <pthread.h>#include <sys/sched.h>int pthread_getschedparam (thread, schedpolicy, schedparam)pthread_t thread;int *schedpolicy;struct sched_param *schedparam;DescriptionThe pthread_getschedparam subroutine returns the current schedpolicy andschedparam attributes of the thread thread. The schedpolicy attribute specifiesthe scheduling policy of a thread. It may have one of the following values:SCHED_FIFO Denotes first-in first-out scheduling.SCHED_RR Denotes round-robin scheduling.SCHED_OTHER Denotes the default AIX scheduling policy. It is the default value.The schedparam attribute specifies the scheduling parameters of a thread createdwith this attributes object. The sched_priority field of the sched_paramstructure contains the priority of the thread. It is an integer value. Note: 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.Parametersthread Specifies the target thread.schedpolicy Points to where the schedpolicy attribute value will be stored.schedparam Points to where the schedparam attribute value will be stored.Return ValuesUpon successful completion, the current value of the schedpolicy and schedparamattributes are returned via the schedpolicy and schedparam parameters, and 0 isreturned. Otherwise, an error code is returned.Error CodesThe pthread_getschedparam subroutine is unsuccessful if the following is true:ESRCH The thread thread does not exist.Implementation SpecificsThis subroutine is part of the Base Operating System (BOS) Runtime.The implementation of this subroutine is dependent on the priority schedulingPOSIX option. The priority scheduling POSIX option is implemented in AIX.Related InformationThe pthread_attr_getschedparam subroutine.Threads Scheduling in AIX Version 4.3 General Programming Concepts: Writing andDebugging Programs.Threads Library Options in AIX Version 4.3 General Programming Concepts: Writingand Debugging Programs.Threads Library Quick Reference in AIX Version 4.3 General Programming Concepts:Writing and Debugging Programs.--------------------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -