sched_setscheduler on solaris
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > sched_setscheduler on solaris




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    sched_setscheduler on solaris  
Donald McLachlan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register