From: "Jack Whorn" <jackwhorn@domain.hid>
To: xenomai@xenomai.org,
Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Subject: Re: [Xenomai-help] Preemptive scheduling
Date: Thu, 29 Mar 2007 05:17:58 +0200 [thread overview]
Message-ID: <20070329031758.125210@domain.hid> (raw)
In-Reply-To: <17930.56329.893396.220621@domain.hid>
Hi Gilles,
> Once your program enters this infinte loop, it never gets out, so :
> - your assumption that "t_task_set_mode periodically clears T_LOCK and
> T_SHIELD and sets T_RRB" is false;
Yeah, I just realized that it does this only once. According to http://snail.fsffrance.org/www.xenomai.org/documentation/branches/v2.0.x/html/api/group__task.html#ga44But I think that the arguments used in the rt_task_set_mode() -call are correct. Isn't that sufficient for the Linux OS to catch e.g. keyboard interrupts?
> - even if higher priority task runs, Linux, which is Xenomai idle task
> never runs, so the system locks up.
Gotcha, that sounds sensible to me.
Actually, the higher-priority task uses some linux-system calls to store data to hard disk. This does no longer take place as soon as the infinite loop is entered. I expected priority coupling to solve that. Where is my error in reasoning?
> In short, maybe you have observed some scheduling problems, but your
> example does not demonstrate them. Such misuse of Xenomai should be
> caught by the watchdog, if you enable it.
I might try that watchdog, thanks for this hint!
Regards,
Jack
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
next prev parent reply other threads:[~2007-03-29 3:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 20:31 [Xenomai-help] Preemptive scheduling Jack Whorn
2007-03-28 21:20 ` Gilles Chanteperdrix
2007-03-29 3:17 ` Jack Whorn [this message]
2007-03-29 8:46 ` Gilles Chanteperdrix
2007-04-03 20:05 ` Jack Whorn
2007-04-03 20:24 ` Philippe Gerum
2007-04-03 20:55 ` Jack Whorn
2007-04-04 8:17 ` Philippe Gerum
2007-04-04 15:10 ` Jack Whorn
2007-04-05 18:38 ` Philippe Gerum
2007-04-10 22:47 ` Jack Whorn
2007-04-11 8:15 ` Dmitry Adamushko
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=20070329031758.125210@domain.hid \
--to=jackwhorn@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.