lkml.org 
[lkml]   [2011]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Priority Inheritance] SCHED_FIFO or SCHED_RR?
From
Date
On Fri, 2011-09-30 at 21:12 +0200, Tadeus (Eus) Prastowo wrote:
> Anyone familiar with the Linux scheduler, please?
>
> On Wed, Sep 28, 2011 at 1:06 AM, Tadeus (Eus) Prastowo
> <0x657573@googlemail.com> wrote:
> > Hi!
> >
> > When a SCHED_RR task with RT priority X blocks on a
> > priority-inheriting mutex held by a SCHED_NORMAL task with nice value
> > Y, RT-Mutex code will change the SCHED_NORMAL task priority to that of
> > the SCHED_RR task and based on the new priority, will change the
> > scheduling class too. But, each task retains its own scheduling
> > policy.
> >
> > This means that the task inheriting the SCHED_RR priority will be
> > scheduled using SCHED_FIFO policy because task_tick_rt does not
> > enforce the SCHED_RR time slice when the task policy is not SCHED_RR.
> >
> > Why should a SCHED_NORMAL task inheriting the priority of a SCHED_RR
> > task get the privilege of SCHED_FIFO task for running as long as it
> > wishes even when the task giving the inheritance does not have such
> > privilege?

Existence of a critical section > slice would be the real problem, no?

-Mike



\
 
 \ /
  Last update: 2011-10-01 07:43    [W:0.072 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site