Unix Programming - sched_setscheduler on solaris

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2004 > sched_setscheduler on solaris





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author sched_setscheduler on solaris
Donald McLachlan

2004-09-02, 6: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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com