* How-to write soft real-time programs Kernel-2.6.x
@ 2004-04-16 8:20 abhinav singh
2004-04-16 10:01 ` Axel Weiss
2004-04-16 13:18 ` Chris Friesen
0 siblings, 2 replies; 3+ messages in thread
From: abhinav singh @ 2004-04-16 8:20 UTC (permalink / raw)
To: linux-kernel; +Cc: abhinav_is_in
i m a relatively newbie to kernel-2.6.x. But i have
information that suggests that kernel-2.6.x has got
soft real-time capabilities.
So how-to write a simple program(may be a Hello world
program) which has real-time capabilities. I require
it for writing a program on kernel-2.6.x that uses the
soft real-time capabilities.
Any help in this matter will be highly appreciated.
Abhinav.
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How-to write soft real-time programs Kernel-2.6.x
2004-04-16 8:20 How-to write soft real-time programs Kernel-2.6.x abhinav singh
@ 2004-04-16 10:01 ` Axel Weiss
2004-04-16 13:18 ` Chris Friesen
1 sibling, 0 replies; 3+ messages in thread
From: Axel Weiss @ 2004-04-16 10:01 UTC (permalink / raw)
To: linux-kernel; +Cc: abhinav singh
Am Freitag, 16. April 2004 10:20 schrieb abhinav singh:
> i m a relatively newbie to kernel-2.6.x. But i have
> information that suggests that kernel-2.6.x has got
> soft real-time capabilities.
>
> So how-to write a simple program(may be a Hello world
> program) which has real-time capabilities. I require
> it for writing a program on kernel-2.6.x that uses the
> soft real-time capabilities.
Are you looking for www.rtai.org ?
Regards,
Axel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How-to write soft real-time programs Kernel-2.6.x
2004-04-16 8:20 How-to write soft real-time programs Kernel-2.6.x abhinav singh
2004-04-16 10:01 ` Axel Weiss
@ 2004-04-16 13:18 ` Chris Friesen
1 sibling, 0 replies; 3+ messages in thread
From: Chris Friesen @ 2004-04-16 13:18 UTC (permalink / raw)
To: abhinav singh; +Cc: linux-kernel
abhinav singh wrote:
> So how-to write a simple program(may be a Hello world
> program) which has real-time capabilities.
Something like the following will put you into one of the "realtime"
scheduling classes, and you will take priority over the normally
scheduled tasks.
struct sched_param p;
p.sched_priority=50;
if (sched_setscheduler(getpid(), SCHED_RR, &p) < 0) {
perror("error while setting scheduler class");
printf("continuing anyways, but results may not be as good\n");
}
The whole issue of soft-realtime is a complicated one, and there are
many other things that should be done to maximise predictability.
Chris
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-16 13:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 8:20 How-to write soft real-time programs Kernel-2.6.x abhinav singh
2004-04-16 10:01 ` Axel Weiss
2004-04-16 13:18 ` Chris Friesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox