This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: scheduler problem
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Aravind B <arvindb at cranessoftware dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 18 Nov 2003 13:36:21 +0100
- Subject: Re: [ECOS] scheduler problem
- References: <1069158078.5847.7.camel@ambica>
> I have written a code which creates 2 threads with different
> priorities.In the higest priority i have given a while loop.So the
> control is not going to lowest priority.But the code works if threads
> with equal priority is given.
> I wanted to know how the MLQ scheduler works if threads with different
> priorities are given.
The highest priority runnable thread is run.
If there are multiple runnable threads at that priority and time
slicing is enabled, it will round robin between those threads of equal
priority.
Lower priority threads will never run when there is a runnable higher
priority thread.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss