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: Query about eCos scheduler


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


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