This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCos scheduler
- From: Andrew Lunn <andrew at lunn dot ch>
- To: "Meulendijks, J." <Meulendijks at WT dot TNO dot NL>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 11 Nov 2004 14:05:35 +0100
- Subject: Re: [ECOS] eCos scheduler
- References: <6B80E71673E6D611AC1D0008C7F37BC203F8E601@wt15.wt.tno.nl>
On Thu, Nov 11, 2004 at 01:13:14PM +0100, Meulendijks, J. wrote:
> Hi all,
>
> I have a question about time slicing. When I create two threads (A
> and B) the scheduler will first run thread A (for example) and if
> thread A has nothing to do any more thread B is executed. But when
> thread A always has something to do thread B will never be executed!
> Why?
> I have enabled the mlqueue scheduler, both A and B have priority 4 and time
> slicing is enabled.
With this setup both should get to run, with a time slice of 50ms by
default. If timeslicing is not happening it could be your clock is not
working. Try running the kernel test program thread2 and clocktruth.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss