[ECOS] scheduler problem

mohanlal jangir mohanlal@samsung.com
Wed Nov 19 04:41:00 GMT 2003


> Hi,
> I am working on ecos.I have got  struct with the scheduler.
> My problem is  some thing like this.
> Suppose we have 3 threads t1,t2,t3.
> t1 is having priority 2,t2 is having priority 4,t3 having priority 5.
> Now if the threads are resumed t1 gets the cpu first then t2  and last
> t3.
> so my doubt is how does the MLQ scheduler behave when the threads are
> assigned with different priorities.
The same way, you explained above. The highest priority runnable thread gets
cpu. In case of equal priorities, round robin scheduling is done if time
slicing is enabled.

> I also wanted to know how does the MLQ scheduler seperates the ready
> queue into foreground and background process  and  assigns priority to
> them.
There are no processes. eCos is not Linux.

> If any examples with explaination or is there any books or
> tutorials that clearely explains this.
See documentation in doc/html/ref/ecos-ref.html. You can find examples as
well.

Regards
Mohanlal



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list