* [Xenomai] Switch to secondary mode due to pop/push into TBB queue
@ 2014-03-25 16:03 Mnatsakanyan, M.
2014-03-25 16:13 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Mnatsakanyan, M. @ 2014-03-25 16:03 UTC (permalink / raw)
To: xenomai@xenomai.org
Hello,
I am trying to build a real-time application, but still do not understand all Xenomai concepts clearly, so I'm having difficulty to explain why my rt task switches to secondary mode.
My tasks communicate using TBB concurrent_bounded_queue. Whenever the tasks push or pop into the queue they switch to secondary mode.
I am aware of RT_QUEUE provided by Xenomai, but I would like to avoid making this change.
My question is: is it possible to prevent mode switch while still using TBB queue? And how this mode switch can be explained? I read that system calls cause mode switch, but here I cannot recognize a system call.
Thank you,
Mari
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Switch to secondary mode due to pop/push into TBB queue
2014-03-25 16:03 [Xenomai] Switch to secondary mode due to pop/push into TBB queue Mnatsakanyan, M.
@ 2014-03-25 16:13 ` Gilles Chanteperdrix
2014-03-25 16:35 ` Mnatsakanyan, M.
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2014-03-25 16:13 UTC (permalink / raw)
To: Mnatsakanyan, M.; +Cc: xenomai@xenomai.org
On 03/25/2014 05:03 PM, Mnatsakanyan, M. wrote:
> Hello,
>
> I am trying to build a real-time application, but still do not understand all Xenomai concepts clearly,
So, I suggest you read the documentation at http://www.xenomai.org
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Switch to secondary mode due to pop/push into TBB queue
2014-03-25 16:13 ` Gilles Chanteperdrix
@ 2014-03-25 16:35 ` Mnatsakanyan, M.
2014-03-25 17:14 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Mnatsakanyan, M. @ 2014-03-25 16:35 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org
Sorry if my question is not worthy to post here.
I read a lot from xenomai documentation and discussions, but still cannot answer this question.
________________________________________
From: Gilles Chanteperdrix [gilles.chanteperdrix@xenomai.org]
Sent: Tuesday, March 25, 2014 5:13 PM
To: Mnatsakanyan, M.
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Switch to secondary mode due to pop/push into TBB queue
On 03/25/2014 05:03 PM, Mnatsakanyan, M. wrote:
> Hello,
>
> I am trying to build a real-time application, but still do not understand all Xenomai concepts clearly,
So, I suggest you read the documentation at http://www.xenomai.org
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Switch to secondary mode due to pop/push into TBB queue
2014-03-25 16:35 ` Mnatsakanyan, M.
@ 2014-03-25 17:14 ` Philippe Gerum
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2014-03-25 17:14 UTC (permalink / raw)
To: Mnatsakanyan, M., Gilles Chanteperdrix; +Cc: xenomai@xenomai.org
On 03/25/2014 05:35 PM, Mnatsakanyan, M. wrote:
> Sorry if my question is not worthy to post here.
> I read a lot from xenomai documentation and discussions, but still cannot answer this question.
The threading building blocks consists of a huge amount of code not even
remotely designed for running over a dual kernel system, so they issue
regular linux system calls under the hood, either directly or indirectly
by calling other library services. Not to speak of the C++ runtime which
introduces its own set of issues.
In short, TBB won't care about a very basic Xenomai 2.x requirement:
services in real-time mode (i.e. primary) should be obtained from
Xenomai APIs, excluding regular linux system calls. One of these APIs is
a subset of the POSIX specification aimed at real-time programming
though, but this is likely not enough to cover every service the TBB
invokes.
Diving into the TBB implementation would be required to figure out what
happens there, and whether using a construct in real-time mode over a
dual kernel is ever possible.
>
> ________________________________________
> From: Gilles Chanteperdrix [gilles.chanteperdrix@xenomai.org]
> Sent: Tuesday, March 25, 2014 5:13 PM
> To: Mnatsakanyan, M.
> Cc: xenomai@xenomai.org
> Subject: Re: [Xenomai] Switch to secondary mode due to pop/push into TBB queue
>
> On 03/25/2014 05:03 PM, Mnatsakanyan, M. wrote:
>> Hello,
>>
>> I am trying to build a real-time application, but still do not understand all Xenomai concepts clearly,
>
> So, I suggest you read the documentation at http://www.xenomai.org
>
> --
> Gilles.
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
>
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-25 17:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 16:03 [Xenomai] Switch to secondary mode due to pop/push into TBB queue Mnatsakanyan, M.
2014-03-25 16:13 ` Gilles Chanteperdrix
2014-03-25 16:35 ` Mnatsakanyan, M.
2014-03-25 17:14 ` Philippe Gerum
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.