09-02-04 11:50 PM
Hi,
I'm writing some code using nanosleep() and I want to minimise the
context switch latency.
By using sched_setscheduler(0, SCHED_FIFO, &settings) I was able to
improve things a bit.
I would like to try using sched_setscheduler(0, SCHED_SYS, &settings)
but sched_setscheduler() keeps returning -1 and setting errno =
Invalid argument.
Can SCHED_SYS be used outside the kernel?
What values must one use in the sched_param structure?
Does anyone have a working example using sched_setscheduler(0,
SCHED_FIFO, &settings) I could look at?
Thanks,
Don
[ Post a follow-up to this message ]
|