[Xenomai] 回复： Question about synchronisation between xenomai taskand linux task
1173264124 at qq.com
Tue Dec 15 04:42:44 CET 2015
So you mean there is not simple and complete solution way apply by xenomai to figure out the synchronization problem between xenomai thread and linux thread? When I meet synchronization problem between xenomai thread and linux thread, do I have to handle it like xddp and pipe?
------------------ 原始邮件 ------------------
发件人: "Gilles Chanteperdrix"<gilles.chanteperdrix at xenomai.org>;
发送时间: 2015年12月15日(星期二) 上午6:35
收件人: "ニャン星人"<1173264124 at qq.com>;
抄送: "xenomai"<xenomai at xenomai.org>;
主题: Re: [Xenomai] Question about synchronisation between xenomai taskand linux task
On Mon, Dec 14, 2015 at 10:56:40PM +0800, ニャン星人 wrote:
> Hello, sorry to bother you. I have some questions about synchronisation. I am very eager for your help.
> I have read the source code file like rtipc.c, xddp.c, bufp.c,
> iddp.c, and pipe.c. Now I am wondering if there is a simple
> and effective way of synchronisation between xenomai task and
> linux task in user space and kernel space.
> I found most of synchronisation service introduced in Xenomai
> 3 Programmer¡¯s Reference Manual could be only used in xenomai
> task, linux task can not use these synchronisation service. If I
> use linux synchronisation service like mutex in xenomai task,
> xenomai task would switch to secondary mode which would cost a lot
> of time. So I want to know how to synchronize xenomai task and
> linux task in user space. o
> As I mentioned above, I have read the source code file like
> rtipc.c, xddp.c, bufp.c, iddp.c, I know lots of functions were
> realized in linux kernel modules as rtdm devices, both xenomai
> task and linux task could call these functions by rtdm
> interface. In kernel space, Synchronisation Services was used
> to synchronize between xenomai tasks, xnapc and
> wait_queue_head_t were used to synchronize between xenomai
> task and linux task. I am wondering if there is a simple to
> synchronize between xenomai task and linux task directly in
> kernel space.
> I'am a rookie of xenomai. It might be simple questions in your
> opinion. I would appreciate it if you could help.
The xddp sockets allow exchanging message between Xenomai and Linux
threads. Synchronizing per-se is complicated because the two types
of threads are scheduled by different schedulers.
> _______________________________________________ Xenomai mailing
> list Xenomai at xenomai.org
More information about the Xenomai