This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCos- Thread cycle time...
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Gorjup Matthias <Matthias dot Gorjup at SIEMENS dot AT>
- Cc: "'ecos-discuss at ecos dot sourceware dot org'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 30 Aug 2004 18:44:29 +0200
- Subject: Re: [ECOS] eCos- Thread cycle time...
- References: <BFB6C6946ED8D211B1A60800060DA36906BDD5E4@grzs103a.nlg.siemens.at>
On Mon, Aug 30, 2004 at 06:24:01PM +0200, Gorjup Matthias wrote:
>
> Hello,
>
>
> I am processing all my algorithms in a standard eCos thread.
>
> What is the default cycle time for threads in eCos platform ?
>
> For example is it possible to process one Rx frame in a high priority task
> thread in 4 ms ? ( Of course it depends on the length of frame however the
> question is ; is it possible to process less than 10 msec or a thread in
> eCos steps in every 10msec ? )
You are talking about round robin scheduling of multiple threads on
the same priority. The timeslice defaults to 5 ticks, but is
configurable. See CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS. Normally 1 tick
is 10ms but that is also configurable.
eCos is premptive, so if a higher priority thread becomes runable it
will run till it blocks. Only then will any lower priority threads
run.
Does that answer your question?
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