This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: scheduler problem
- From: mohanlal jangir <mohanlal at samsung dot com>
- To: Aravind B <arvindb at cranessoftware dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 19 Nov 2003 10:10:47 +0530
- Subject: Re: [ECOS] scheduler problem
- References: <1069213542.1314.10.camel@ambica>
> 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