Silphireの日記: pthread日記(78) - pthread_getschedparam()
日記 by
Silphire
スレッドのスケジューリングポリシーとスケジューリングパラメタを取得します
int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param);
pthread_getschedparam()は、threadで指定したIDを持つスレッドのスケジューリングポリシーをpolicyに、スケジューリングパラメタをparamにそれぞれ取得して格納します。pthread_getschedparam()を使って得たプライオリティの値は、最後にpthread_setschedparam()を用いて設定した物か、あるいはpthread_create()でスレッドを作成した時に設定されたデフォルトの値になります。
pthread_getschedparam()が成功した時には0を返します。エラーの時はエラーに応じた値を返します。
pthread日記(78) - pthread_getschedparam() More ログイン