From: Philippe Gerum <rpm@xenomai.org>
To: Michael Haberler <haberlerm@gmail.com>, xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Q on scheduling - rt_task_wait_period vs rtdm_wait_event
Date: Sun, 07 Jun 2015 16:42:37 +0200 [thread overview]
Message-ID: <5574585D.90803@xenomai.org> (raw)
In-Reply-To: <CADvZd9YUCnLcuwndRrsEY=Po1AL7nm_3Z+7daBOaCucRAJgT0w@mail.gmail.com>
On 06/07/2015 02:39 PM, Michael Haberler wrote:
> so far we had multiple periodic RT threads of different priority, so a
> lower-priority thread would not preempt a higher-priority one
>
> we are switching the scheduling of a low-priority thread from periodic to
> event-based - instead of rt_task_wait_period(), this task will now wait in
> an RTDM driver ioctl in rtdm_event_wait()
>
> I assume the following to be true:
>
> even if the rtdm_even_wait() terminates while a higher priority thread is
> running, the lower priority thread will not be scheduled until all
> higher-priority threads have entered rt_task_wait_period().
>
> correct?
>
Yes, assuming SCHED_FIFO for all of these threads. There is no reason
for implicitly changing the priority of a sleeper as a result of waking
it up from a blocking service.
--
Philippe.
next prev parent reply other threads:[~2015-06-07 14:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-07 12:39 [Xenomai] Q on scheduling - rt_task_wait_period vs rtdm_wait_event Michael Haberler
2015-06-07 14:42 ` Philippe Gerum [this message]
2015-06-08 9:28 ` Michael Haberler
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=5574585D.90803@xenomai.org \
--to=rpm@xenomai.org \
--cc=haberlerm@gmail.com \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.