All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Real Time about user thread
@ 2013-07-27 12:13 aking
  2013-07-28 22:19 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: aking @ 2013-07-27 12:13 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,all
     RTDM is in the xenoami domain ,and it's  driven by the IRQ so that 
could provide hard real time.
     The userspace thread is in Linux domain(maybe?) , what mechanism 
was implemented to provide a Linux userspace thread real time?
         Thank you very much.

-- 
Best Regards
aking_jin


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] Real Time about user thread
  2013-07-27 12:13 [Xenomai] Real Time about user thread aking
@ 2013-07-28 22:19 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2013-07-28 22:19 UTC (permalink / raw)
  To: aking; +Cc: xenomai@xenomai.org

On 07/27/2013 02:13 PM, aking wrote:

> Hi,all


Hi,

>       RTDM is in the xenoami domain ,


A thread or an interrupt can be in the xenomai or linux domain, but RTDM 
is a skin, so, it does not really make sense to say that it is in the 
xenomai domain. RTDM allows to create real-time threads or to register 
interrupt handlers which can be executed in the Xenomai domain, but also 
allows defining callback executed in Linux domain.

 > and it's  driven by the IRQ so that could provide hard real time.

RTDM is no more driven by IRQ than the Linux kernel is driven by IRQ, 
and this is not sufficient to provide hard real-time (otherwise, the 
Linux kernel would provide hard real-time). The mechanism allowing hard 
real-time response to interrupts is the so-called "Optimistic interrupt 
protection" scheme, see [1] for more details.

>       The userspace thread is in Linux domain(maybe?)


Or maybe not, see above.

  , what mechanism
> was implemented to provide a Linux userspace thread real time?
>           Thank you very much.
>


Xenomai uses the Adeos patch to allow executing user-space threads in 
Xenomai domain, see [1] for more detains, and implements the classic 
real-time scheduling policies, aka SCHED_FIFO and SCHED_RR to provide 
deterministic scheduling.

[1] 
http://www.xenomai.org/documentation/branches/v2.3.x/pdf/Life-with-Adeos-rev-B.pdf

-- 
                                                                 Gilles.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-28 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-27 12:13 [Xenomai] Real Time about user thread aking
2013-07-28 22:19 ` Gilles Chanteperdrix

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.