From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <213583.55278.qm@domain.hid> References: <737283.11182.qm@domain.hid> <4DEF2D3D.9090409@domain.hid> Date: Tue, 21 Jun 2011 05:02:24 -0700 (PDT) From: sanjay anvekar MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-520288917-1308657744=:55278" Subject: Re: [Xenomai-help] Xenomai-Driver Reply-To: sanjay anvekar List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xenomai@xenomai.org" --0-520288917-1308657744=:55278 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Gilles,=0A=A0=A0=A0=A0 Thanks for your reply. I am using 'rt_task_sleep(= 100us)' at the end of every task to let Linux task run.=0AWith this I am ab= le to run my application program , but I am not able to debug using 'GDB'. = Also is there any=0Abetter way to allow Linux task run instead of using 'rt= _task_sleep' ? My application has got 5 different task of =0A=0Aequal prior= ity and I want to run these in Round Robin fashion , I used 'rt_task_set_mo= de(0,XNRRB ,NULL)'=0Ato enable Round Robin scheduling mode, but task are no= t getting executed in Round Robin fashion. =0A=0AAm I missing something ? P= lease help me.=0A=0AThanks & Best Regards,=0ASanjay=0A=0A=0A=0A____________= ____________________=0AFrom: Gilles Chanteperdrix =0ATo: sanjay anvekar =0ACc: "xenomai-hel= p@domain.hid" =0ASent: Wednesday, 8 June 2011 1:35 PM=0A= Subject: Re: [Xenomai-help] Xenomai-Driver=0A=0AOn 06/08/2011 04:22 AM, san= jay anvekar wrote:=0A>=A0 =A0 =A0 rt_task_yield() - To allow=0A execution o= f other tasks.=0A=0AIt is a bit hard to answer without seeing any code, but= there is a=0Asimple remark we can make: rt_task_yield does not "allow exec= ution of=0Aother tasks", rt_task_yield only allows execution of tasks with = same=0Apriority as the current task. Your real-time tasks have to let Linux= run=0Afrom time to time if you want the serial port and graphic display to= run=0Acorrectly, and in order to do this they have to get suspended,=0Art_= task_yield will definitely not do that.=0A=0A-- =0A=A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 Gilles. --0-520288917-1308657744=:55278 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Gilles,
 = ;    Thanks for your reply. I am using 'rt_task_sleep( 100us)' at the end of every task to let Linux task run= .
With this I am able to run my application program = , but I am not able to debug using 'GDB'. Also is there any
better way to allow Linux task run instead of using 'rt_task_sleep'= ? My application has got 5 different task of
equal priority and I want to run these in Roun= d Robin fashion , I used 'rt_task_set_mode(0,XNRRB ,NULL)'
to enable Round Robin scheduling mode, but task are not getting exec= uted in Round Robin fashion.
Am I missing somet= hing ? Please help=0A me.

Thanks & Best Regards,
Sanjay
=


From: Gilles Chanteperd= rix <gilles.chanteperdrix@xenomai.org>
To: sanjay anvekar <sanjayanvekar@domain.hid>Cc: "xenomai@xenomai.org= " <xenomai@xenomai.org>
Sen= t: Wednesday, 8 June 2011 1:35 PM
Subject: Re: [Xenomai-help] Xenomai-Driver
=
On 06/08/2011 04:22 AM, sanjay anvekar wrote:
>    &nbs= p; rt_task_yield() - To allow=0A execution of other tasks.

It is a b= it hard to answer without seeing any code, but there is a
simple remark = we can make: rt_task_yield does not "allow execution of
other tasks", rt= _task_yield only allows execution of tasks with same
priority as the cur= rent task. Your real-time tasks have to let Linux run
from time to time = if you want the serial port and graphic display to run
correctly, and in= order to do this they have to get suspended,
rt_task_yield will definit= ely not do that.

--
            &n= bsp;                     =                      = ;         Gilles.



--0-520288917-1308657744=:55278--