Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [Xenomai-help] Priority inversion Date: Fri, 21 Jul 2006 17:53:47 +0200 Message-ID: In-Reply-To: From: "ROSSIER Daniel" List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: rpm@xenomai.org, Daniel Simon Cc: xenomai@xenomai.org > -----Message d'origine----- > De=A0: xenomai-help-bounces@domain.hid = [mailto:xenomai-help-bounces@domain.hid] De > la part de ROSSIER Daniel > Envoy=E9=A0: vendredi, 21. juillet 2006 15:40 > =C0=A0: rpm@xenomai.org; Daniel Simon > Cc=A0: xenomai@xenomai.org > Objet=A0: RE: [Xenomai-help] Priority inversion >=20 >=20 > > -----Message d'origine----- > > De=A0: xenomai-help-bounces@domain.hid = [mailto:xenomai-help-bounces@domain.hid] > De > > la part de Philippe Gerum > > Envoy=E9=A0: vendredi, 21. juillet 2006 15:16 > > =C0=A0: Daniel Simon > > Cc=A0: xenomai@xenomai.org > > Objet=A0: Re: [Xenomai-help] Priority inversion > > > > On Fri, 2006-07-21 at 14:51 +0200, Daniel Simon wrote: > > > On Fri, 21 Jul 2006 14:12:47 +0200 > > > "ROSSIER Daniel" wrote: > > > > > > > but it might be at the spin() level. > > > > > > I have observed that the behaviour of rt_timer_spin() does not fit > with > > > the expected behaviour as described in the doxygened comment: its > actual > > > awakening time do not increase when it is preempted. > > > > > > According to the code in timer.c (using 2.1.2) the wakening time = seems > > > to be computed once for all at the beginning of the function call. > > > > > > Am I right? > > > > > > > Yes. But nothing is said in the documentation about the = determination of > > the end spinning time, so the doc is right; what it says is that = your > > task is going to wait for a certain count of nanoseconds, as seen = from > > its own POV, it does not say that only cycles spent in actual = spinning > > wait on behalf of the caller should be accounted for. Fact is that = the > > task will have waited for a certain amount of time before returning, > > what has occurred in the rest of the system during that period is > > irrelevant to the purpose of rt_task_spin(). > > > > I guess that your interpretation of the behaviour of your = application > > has been wrong due to the non-cumulative aspect of rt_timer_spin(), = i.e. > > a first spinning interrupted by a second one will exit immediately = upon > > return if the initial end time has been reached, because of the = second > > spin time. But in any case, this is an expected behaviour. >=20 > Yes, that's definitively the point; and again, sorry for the mishap = with > the mutex/sema, which actually perfectly works :-) >=20 > Back to rt_timer_spin(), in other words, does it mean that there is a = kind > of global counter used by this function that evolves over the = different > tasks when rt_timer_spin() is used, or something like this (no notion = of > virtual task time)? An additional point: if we replace rt_timer_spin(n) by looping n times = rt_timer_spin(1), the behaviour of this tricky application is correct! >=20 > > > > > Daniel > > > > > -- > > Philippe. > > > > > > > > _______________________________________________ > > Xenomai-help mailing list > > Xenomai-help@domain.hid > > https://mail.gna.org/listinfo/xenomai-help >=20 > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help