From: Klaas van Gend <klaas.van.gend@mvista.com>
To: Brian Ford <bsfford@yahoo.co.uk>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: Questions on developing applications...
Date: Fri, 06 Feb 2009 12:32:30 -0800 [thread overview]
Message-ID: <498C9E5E.7060708@mvista.com> (raw)
In-Reply-To: <296402.26723.qm@web28616.mail.ukl.yahoo.com>
Brian Ford wrote:
> Hi Everyone,
>
> I'm new to real time linux programming, apologies if these questions are
> very simple.
>
> I've recently setup a real time Linux kernel using patch-2.6.24.7-rt26
> and got the simple "Hello World" program working. However, I'm unable
> to find any guides on how to write more complex software.
>
> Can you tell me how to do real time inter process message passing in linux?
> I'm familiar with shared memory and pipes -- is it ok to use these in
> a real time context?
>
> Also, I've read that printf may not provide real time performance.
> (http://rt.wiki.kernel.org/index.php/HOWTO:_Build_an_RT-application)
> If I use printf/printk to a X UI terminal, will the output be deterministic (take a fixed time)?
>
> I'm also interested in building a cyclic executive scheduler to control individual process. At
> the moment I'm guessing the only way to do this would be to modify the kernel scheduler.
> Is it possible to do this at the application/process level?
It depends. Do you know about SCHED_FIFO and SCHED_RR ?
It sounds like that may already suit your needs.
If you're not familiar with those, please read up on this - e.g. in
Chapter 4 of Robert Love's book: http://www.amazon.co.uk/dp/0672327201
--
Best regards,
Klaas van Gend
Senior Solutions & Services Architect
MontaVista Software
Phone: (408) 572 7962 (Santa Clara Office)
Phone: +31 40 2801386 (for European calls)
prev parent reply other threads:[~2009-02-06 20:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 11:50 Questions on developing applications Brian Ford
2009-02-04 12:49 ` Remy Bohmer
2009-02-11 15:18 ` Brian Ford
2009-02-06 20:32 ` Klaas van Gend [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=498C9E5E.7060708@mvista.com \
--to=klaas.van.gend@mvista.com \
--cc=bsfford@yahoo.co.uk \
--cc=linux-rt-users@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 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.