This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: eCos scheduler
- From: "Meulendijks, J." <Meulendijks at WT dot TNO dot NL>
- To: "'Andrew Lunn'" <andrew at lunn dot ch>, "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:07:50 +0100
- Subject: RE: [ECOS] eCos scheduler
Yes, that is what I thought. I believe that my clock is not running so now I'm
figuring out why it isn't running. Thanks a lot now I know I didn't miss
anything...
-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: donderdag 11 november 2004 14:06
To: Meulendijks, J.
Cc: 'ecos-discuss@sources.redhat.com'
Subject: Re: [ECOS] eCos scheduler
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