[ECOS] eCos scheduler

Andrew Lunn andrew@lunn.ch
Thu Nov 11 13:08:00 GMT 2004


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



More information about the Ecos-discuss mailing list