This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: scheduler problem


> 	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]