[ECOS] Query about eCos scheduler
Gary Thomas
gary@mlbassoc.com
Sat Sep 13 01:01:00 GMT 2003
On Fri, 2003-09-12 at 21:54, mohanlal jangir wrote:
> > > 4. Anybody has clue on what happens if user tries to run multiple
> > > threads on the same priority with MLQ scheduler? Which thread will
> > > get to run first and when will the other threads run? this is
> > > because all threads have the same priority and scheduler can
> > > schedule only one thread at a time.
> > >
> >
> > The threads will be run in the order in which they were created. If
> > timeslicing is enabled then the scheduler will switch to the next
> > thread at each timeslice point.
> >
> Does it mean, if timeslicing is not enabled then only first created thread
> will run and others do not run at all?
Yes, if timeslicing is not enabled, then the highest priority thread
will run until it does something which blocks, e.g. sleeps waiting
for a semaphore. In this case, the system would be purely event driven.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
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