This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Round robin scheduler question
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Ian Gilmour <ian dot gilmour at ffei dot co dot uk>
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 20 Aug 2003 14:38:12 +0200
- Subject: Re: [ECOS] Round robin scheduler question
- References: <334D05460466D311A5E8009027AC788603880A84@hhmail1.hh.ffei.co.uk>
> I think I favour option 2.
Actually, a simpler option might be to make your two threads call
cyg_thread_yield() every so often. That will cause the cpu to be
passed between the two threads and does not require you to modify
eCos.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss