Real Time about user thread
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.
Signature · 2 lines
Best Regards aking_jin
Quoted 1 line · aking
Hi,all
Hi,
Quoted 1 line
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.
Quoted 1 line
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.
Quoted 1 line
The userspace thread is in Linux domain(maybe?)
Or maybe not, see above.
, what mechanism
Quoted 3 lines
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
Signature · 1 line
Gilles.