[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] Workng with the example



mshsaint wrote:
> > Now I am looking at this 2tasks examples and there are some things I
don't
> > understand:
> > And another thing due to the output I have got is:
> > Does the output really have a nice represntation of the premprtion. It
> > seemes to me that the lower process priority never gets preempted by
the
> > higher one, since the higher is asleep...
> 
cecil wrote:
> My understanding of the demo is different: each task runs to completion
> without interruption, and each task is called on a strict schedule and
> runs at a precise time. 

so what is all the code regarding the preemption about? The code is in
rt_sched.c...

Assuming we have two tasks
Task 1,  with a high priority
Task 2,  with a lower priority

With the code we have in hand shouldn't task2 be interrupted if the waiting
time of task1 is over, 
say task1 is supposed to run every 10 seconds and task2 takes two seconds
to run and it starts running at 9. shouldn't task2 be interrupted by task
1( assuming the last time task1 was executed is at 0)?
Thanx
M
--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/