Re: [rt sched] SCHED_FIFO task of lower rt_priority blocks higher one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks for your replies.

I made a mistake about the priority inside the kernel and
sched_setscheduler system call.
I thought both of them are the same: numerically lower priority value
is higher schedule priority.
But in fact, they are opposite:

  * Kernel: numerically lower value is high priority
  * sched_setscheduler() and related system calls:  numerically lower
value is lower priority

It is said in  "man sched_get_priority_max" output:

       Processes with numerically higher priority values  are
scheduled  before  processes
       with numerically lower priority values. Thus, the value
returned by sched_get_prior-
       ity_max() will be greater than the value returned by
sched_get_priority_min().

Thanks.

On Thu, Mar 4, 2010 at 12:52 PM, Karthik Singaram Lakshmanan
<karthiksingaram@xxxxxxxxx> wrote:
> Hi,
>     If I am not mistaken, higher value of sched_priority denotes higher
> priority.
>     Therefore, looking at
>         normal_prio = MAX_RT_PRIO - 1 - task->rt_priority;
>         you can see that a higher task->rt_priority will translate to a
> lower value of normal_prio, thereby occupying an earlier bit.


-- 
Best Regards,
Zeng Xianwei
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux