Получить значение временного ограничения процесса
#include <sched.h>
int sched_rr_get_interval( pid_t pid,
struct timespec *interval );
- pid
- The process ID whose execution time limit you want to get.
- interval
- A pointer to a struct timespec that the function updates with the process's current execution time limit.
libc
The sched_rr_get_interval() function updates interval with the current execution time limit for the process, pid. If pid is 0
, the current execution time limit for the calling process is returned.
- 0
- Успешное завершение.
- -1
- Возникла ошибка. Код ошибки записан в errno.
- ENOSYS
- The sched_rr_get_interval() function isn't currently supported.
- ESRCH
- The process pid can't be found.
POSIX 1003.1 PS
- Точка остановки потока
- Нет
- Обработчик прерываний
- Нет
- Обработчик сигналов
- Да
- В потоке
- Да
struct timespec
Предыдущий раздел: Описание API системной библиотеки