Get the execution time limit of a process
#include <sched.h> int sched_rr_get_interval( pid_t pid, struct timespec * interval );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sched_rr_get_interval() function updates interval with the current execution time limit (what POSIX calls the time quantum) for the process, pid. If pid is 0, the current execution time limit for the calling process is returned.
In QNX Neutrino, this value is the timeslice for the SCHED_RR scheduling policy.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |