From: Peter Zijlstra <peterz@infradead.org>
To: Ivan Gualandri <finarfin@dreamos.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Real Time scheduler infos
Date: Thu, 17 Dec 2009 15:38:44 +0100 [thread overview]
Message-ID: <1261060724.27920.442.camel@laptop> (raw)
In-Reply-To: <117cfc288d1eed419c5f296d43167116@localhost>
On Thu, 2009-12-17 at 15:22 +0100, Ivan Gualandri wrote:
> Hi,
>
> i have a question about priorities in RT patchset.
>
> In linux priorites are from 1 to 139 (1 highest - 139 lowest)
> And RT prorities are between 1 to 99. An i think 1 is highest and 139
> lowest.
>
> But now if i try to launch three tasks with 3 different priorities:
> for example
> A has priority 10
> B has priority 20
> C has priority 30
> I notice that the tasks B and C are always the first two to run. And A
> always wait the end of B or C (also if A is the first task launched).
>
> Now my question is:
> when i set priority of a RT task (changing the sched_priority field of my
> task) the highest priority is 99 or 1?
The user exposed priorities are from low to high, that is 1 is the
lowest and 99 (POSIX compliant apps use
sched_get_priority_max(SCHED_FIFO)) is the highest priority, as
specified by POSIX.
The scheduler implementation has this reversed but that should be of no
consequence.
prev parent reply other threads:[~2009-12-17 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 14:22 Real Time scheduler infos Ivan Gualandri
2009-12-17 14:38 ` Peter Zijlstra [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1261060724.27920.442.camel@laptop \
--to=peterz@infradead.org \
--cc=finarfin@dreamos.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox