Thread (17 messages) flat view 17 messages, 7 authors, 2012-10-19

Re: how to put in higher priority a thread in rt-kernel?

From: Clark Williams <hidden>
Date: 2012-09-10 16:20:29

On Sun, 09 Sep 2012 22:23:08 -0700
Gregoire Gentil [off-list ref] wrote:

On 09/09/2012 08:52 PM, Mike Galbraith wrote:
quoted
On Sun, 2012-09-09 at 15:51 -0700, Gregoire Gentil wrote:
quoted
In other words, is there an equivalent of
sched_setscheduler for thread inside the kernel?
Yup, and it's even called sched_setscheduler() :)

-Mike
Thanks for answering! I don't think that my question is the smartest one 
ever asked on this mailing list ;-)
I've heard worse :).

My only comment is that I'd think long and hard before setting my
interrupt thread up at fifo:99, since that's where the migration and
watchdog live and you really don't want to impact them. 

Are you trying to have your interrupt serviced ahead of all the other
system interrupts or just trying to be up above the SCHED_OTHER
threads? If the former, then you just need to be up above wherever the
IRQ threads live (default is fifo:50). If the later then fifo:2 would
be a safe bet.  

Clark

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help